public synchronized void log ( String formattedLog ) { if ( _reopen || _out == null ) { stop ( ) ; start ( ) ; } try { _buffer . write ( formattedLog ) ; _buffer . write ( StringUtil . __LINE_SEPARATOR ) ; if ( _flushOn || _buffer . size ( ) > _bufferSize ) { _buffer . writeTo ( _out ) ; _buffer . resetWriter ( ) ; _out . flush ( ) ; } } catch ( IOException e ) { e . printStackTrace ( ) ; } }
Log a message . The formatted log string is written to the log sink . The default implementation writes the message to an outputstream .