consolehandler.cxx (2a97ec55) consolehandler.cxx (851abcd9)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 231 unchanged lines hidden (view full) ---

240 {
241 MethodGuard aGuard( *this );
242
243 ::rtl::OString sEntry;
244 if ( !m_aHandlerHelper.formatForPublishing( _rRecord, sEntry ) )
245 return sal_False;
246
247 if ( _rRecord.Level >= m_nThreshold )
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 231 unchanged lines hidden (view full) ---

240 {
241 MethodGuard aGuard( *this );
242
243 ::rtl::OString sEntry;
244 if ( !m_aHandlerHelper.formatForPublishing( _rRecord, sEntry ) )
245 return sal_False;
246
247 if ( _rRecord.Level >= m_nThreshold )
248 fprintf( stderr, sEntry.getStr() );
248 fprintf( stderr, "%s", sEntry.getStr() );
249 else
249 else
250 fprintf( stdout, sEntry.getStr() );
250 fprintf( stdout, "%s", sEntry.getStr() );
251
252 return sal_True;
253 }
254
255 //--------------------------------------------------------------------
256 void SAL_CALL ConsoleHandler::initialize( const Sequence< Any >& _rArguments ) throw (Exception, RuntimeException)
257 {
258 ::osl::MutexGuard aGuard( m_aMutex );

--- 80 unchanged lines hidden ---
251
252 return sal_True;
253 }
254
255 //--------------------------------------------------------------------
256 void SAL_CALL ConsoleHandler::initialize( const Sequence< Any >& _rArguments ) throw (Exception, RuntimeException)
257 {
258 ::osl::MutexGuard aGuard( m_aMutex );

--- 80 unchanged lines hidden ---