question: public void error ( Level level , String messageId , String data [ ] , Object session , Map props ) throws LogException { if ( isErrorLoggable ( level ) ) { LogRecord lr = new LogRecord ( level , formatMessage ( messageId , data , session ) ) ; errorLogger . log ( lr ) ; } }
target:  Writes error occurred in a component into a log.