org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.logging
Class TaskExecutionLogger

java.lang.Object
  extended by org.gcube.portlets.admin.irbootstrapperportlet.gwt.server.logging.TaskExecutionLogger

public class TaskExecutionLogger
extends Object

Author:
Spyros Boutsis, NKUA

Constructor Summary
TaskExecutionLogger(org.apache.log4j.Logger logger, org.gcube.application.framework.core.session.ASLSession session)
          Class constructor
 
Method Summary
 void error(String message)
          Adds an error message to the execution log
 void error(String message, Exception e)
          Adds an error message to the execution log
 void error(String message, Exception e, boolean notifyAdmin)
          Adds an error message to the execution log
 LogEntry.LogEntryLevel getHighestLogLevelContained()
          Returns the highest log type contained in this log
 LinkedList<LogEntry> getLogEntries()
          Returns the list of entries contained in the log
 org.apache.log4j.Logger getServerLogger()
          Returns the logger that is used in order to log messages on the server side
 void info(String message)
          Adds an informational message to the execution log
 void warn(String message)
          Adds a warning message to the execution log
 void warn(String message, Exception e)
          Adds a warning message to the execution log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskExecutionLogger

public TaskExecutionLogger(org.apache.log4j.Logger logger,
                           org.gcube.application.framework.core.session.ASLSession session)
Class constructor

Method Detail

info

public void info(String message)
Adds an informational message to the execution log

Parameters:
message -

warn

public void warn(String message)
Adds a warning message to the execution log

Parameters:
message -

warn

public void warn(String message,
                 Exception e)
Adds a warning message to the execution log

Parameters:
message -
e -

error

public void error(String message)
Adds an error message to the execution log

Parameters:
message -

error

public void error(String message,
                  Exception e)
Adds an error message to the execution log

Parameters:
message -
e -

error

public void error(String message,
                  Exception e,
                  boolean notifyAdmin)
Adds an error message to the execution log

Parameters:
message -

getHighestLogLevelContained

public LogEntry.LogEntryLevel getHighestLogLevelContained()
Returns the highest log type contained in this log

Returns:

getLogEntries

public LinkedList<LogEntry> getLogEntries()
Returns the list of entries contained in the log

Returns:

getServerLogger

public org.apache.log4j.Logger getServerLogger()
Returns the logger that is used in order to log messages on the server side

Returns:


Copyright © 2013. All Rights Reserved.