ru.novosoft.dc.core
Interface CommonLogger


public interface CommonLogger
extends Logger, SystemLogger

This interface joins features of Logger and SystemLogger and adds more functionality.


Method Summary
 void clearError()
          Clear error tag.
 void close()
          Close the logger.
 void debug(java.lang.String message)
          Send a debug message to the logger.
 void debug(java.lang.Throwable ex)
          Send the stack trace of the specified throwable object to the logger as a debug message.
 boolean errorsWereLogged()
          Return true if an error message was sent to the logger.
 boolean exec(java.lang.String[] cmdarray)
          Executes a subprocess passing a command array to it and return true if the process was finished without exceptions.
 java.io.PrintStream getSystemLog()
          Return the system log attached or null if the system log undefined.
 
Methods inherited from interface ru.novosoft.dc.core.Logger
sendMessage
 
Methods inherited from interface ru.novosoft.dc.core.SystemLogger
sendMessage, sendSilentMessage
 

Method Detail

getSystemLog

public java.io.PrintStream getSystemLog()
Return the system log attached or null if the system log undefined.

clearError

public void clearError()
Clear error tag.

errorsWereLogged

public boolean errorsWereLogged()
Return true if an error message was sent to the logger.

debug

public void debug(java.lang.String message)
Send a debug message to the logger.

debug

public void debug(java.lang.Throwable ex)
Send the stack trace of the specified throwable object to the logger as a debug message.

close

public void close()
Close the logger.

exec

public boolean exec(java.lang.String[] cmdarray)
Executes a subprocess passing a command array to it and return true if the process was finished without exceptions. The output of the subprocess is redirected to this logger.