@ Override public void close ( ) { try { if ( this . isOpened ( ) == true ) { this . getTracePrintStream ( ) . println ( ) ; this . getTracePrintStream ( ) . printf ( "--> TraceLog closing!%n" ) ; this . getTracePrintStream ( ) . printf ( " Time : %tc%n" , new Date ( ) ) ; System . out . println ( formatStreamErrorState ( ) + " Closing ..." ) ; this . getTracePrintStream ( ) . close ( ) ; this . getBufferedOutputStream ( ) . close ( ) ; this . fileOutputStream . close ( ) ; this . setOpened ( false ) ; } else { System . err . println ( "WARNING: Tracelog is closed already." ) ; } } catch ( IOException ex ) { ex . printStackTrace ( System . err ) ; } }
Closes the associated trace streams .