public void logMessage ( LogLevel logLevel , String message , Class clazz , String methodName ) { Date timeStamp = new Date ( ) ; char border [ ] = new char [ logLevel . toString ( ) . length ( ) + 4 ] ; Arrays . fill ( border , ' ' ) ; synchronized ( this . syncObject ) { this . tracePrintStream . println ( border ) ; this . tracePrintStream . printf ( "* %s * [%tc] [%d,%s] [%s] [%s] \"%s\"%n" , logLevel . toString ( ) , timeStamp , Thread . currentThread ( ) . getId ( ) , Thread . currentThread ( ) . getName ( ) , clazz . getName ( ) , methodName , message ) ; this . tracePrintStream . println ( border ) ; } }
Logs a message with the given logLevel and the originating class .