org.globus.cog.gridface.impl.util
Interface Logger

All Known Subinterfaces:
CoGTop
All Known Implementing Classes:
AbstractDesktop, LoggerImpl

public interface Logger


Field Summary
static int DEBUG
           
static int ERROR
           
static int FATAL
           
static int INFO
           
static String sABOUT
           
static int WARN
           
 
Method Summary
 void clearLog()
           
 void debug(String message)
          to write debugging messages which should not be printed when the application is in production.
 void error(String message)
          for application error messages which are also logged to some log but, still, the application can hobble along.
 void fatal(String message)
          for critical messages, after logging of which the application quits abnormally.
 int getLevel()
           
 void info(String message)
          for messages similar to the "verbose" mode of many applications.
 void saveLogToFile(String fileName)
           
 void setLevel(int logLevel)
          Set log output level
 void showAboutFrame(Component parent)
          display the about frame for this component
 void warn(String message)
          for warning messages which are logged to some log but the application is able to carry on without a problem
 

Field Detail

sABOUT

public static final String sABOUT
See Also:
Constant Field Values

DEBUG

public static final int DEBUG
See Also:
Constant Field Values

INFO

public static final int INFO
See Also:
Constant Field Values

WARN

public static final int WARN
See Also:
Constant Field Values

ERROR

public static final int ERROR
See Also:
Constant Field Values

FATAL

public static final int FATAL
See Also:
Constant Field Values
Method Detail

debug

public void debug(String message)
to write debugging messages which should not be printed when the application is in production.


info

public void info(String message)
for messages similar to the "verbose" mode of many applications.


warn

public void warn(String message)
for warning messages which are logged to some log but the application is able to carry on without a problem


error

public void error(String message)
for application error messages which are also logged to some log but, still, the application can hobble along.


fatal

public void fatal(String message)
for critical messages, after logging of which the application quits abnormally.


setLevel

public void setLevel(int logLevel)
Set log output level


getLevel

public int getLevel()
Returns:
current log output level

showAboutFrame

public void showAboutFrame(Component parent)
display the about frame for this component


clearLog

public void clearLog()

saveLogToFile

public void saveLogToFile(String fileName)
                   throws IOException
Throws:
IOException