org.millscript.millscript.conf.logging
Interface Logger

All Known Implementing Classes:
AlertLogger, CritLogger, DebugLogger, EmergLogger, ErrorLogger, InfoLogger, NoticeLogger, WarnLogger

public interface Logger

The basic logging interface for MillScript. This will very likely need replacing the near future, as this interface should abstract the different destinations for messages(there may be multiple destinations).


Method Summary
 void alert(java.lang.Object o)
          Logs the specified object as an "alert" level message.
 void alertLine(java.lang.Object o)
          Logs the specified object as an "alert" level message and ends the current line of output.
 void crit(java.lang.Object o)
          Logs the specified object as a "crit" level message.
 void critLine(java.lang.Object o)
          Logs the specified object as a "crit" level message and ends the current line of output.
 void debug(java.lang.Object o)
          Logs the specified object as a "debug" level message.
 void debugLine(java.lang.Object o)
          Logs the specified object as a "debug" level message and ends the current line of output.
 void emerg(java.lang.Object o)
          Logs the specified object as an "emerg" level message.
 void emergLine(java.lang.Object o)
          Logs the specified object as an "emerg" level message and ends the current line of output.
 void error(java.lang.Object o)
          Logs the specified object as an "error" level message.
 void errorLine(java.lang.Object o)
          Logs the specified object as an "error" level message and ends the current line of output.
 void info(java.lang.Object o)
          Logs the specified object as an "info" level message.
 void infoLine(java.lang.Object o)
          Logs the specified object as an "info" level message and ends the current line of output.
 void notice(java.lang.Object o)
          Logs the specified object as a "notice" level message.
 void noticeLine(java.lang.Object o)
          Logs the specified object as a "notice" level message and ends the current line of output.
 void print(java.lang.Object o)
          Prints the specified object to the relevant output for this logger.
 void println(java.lang.Object o)
          Prints the specified object to the relevant output for this logger and then ends the line.
 void stackTrace(java.lang.Throwable t)
          Prints a stack trace for the specified throwable object, to the relevant output for this logger.
 void warn(java.lang.Object o)
          Logs the specified object as a "warn" level message.
 void warnLine(java.lang.Object o)
          Logs the specified object as a "warn" level message and ends the current line of output.
 

Method Detail

alert

void alert(java.lang.Object o)
Logs the specified object as an "alert" level message.

Parameters:
o - the object to log

alertLine

void alertLine(java.lang.Object o)
Logs the specified object as an "alert" level message and ends the current line of output.

Parameters:
o - the object to log

crit

void crit(java.lang.Object o)
Logs the specified object as a "crit" level message.

Parameters:
o - the object to log

critLine

void critLine(java.lang.Object o)
Logs the specified object as a "crit" level message and ends the current line of output.

Parameters:
o - the object to log

debug

void debug(java.lang.Object o)
Logs the specified object as a "debug" level message.

Parameters:
o - the object to log

debugLine

void debugLine(java.lang.Object o)
Logs the specified object as a "debug" level message and ends the current line of output.

Parameters:
o - the object to log

emerg

void emerg(java.lang.Object o)
Logs the specified object as an "emerg" level message.

Parameters:
o - the object to log

emergLine

void emergLine(java.lang.Object o)
Logs the specified object as an "emerg" level message and ends the current line of output.

Parameters:
o - the object to log

error

void error(java.lang.Object o)
Logs the specified object as an "error" level message.

Parameters:
o - the object to log

errorLine

void errorLine(java.lang.Object o)
Logs the specified object as an "error" level message and ends the current line of output.

Parameters:
o - the object to log

info

void info(java.lang.Object o)
Logs the specified object as an "info" level message.

Parameters:
o - the object to log

infoLine

void infoLine(java.lang.Object o)
Logs the specified object as an "info" level message and ends the current line of output.

Parameters:
o - the object to log

notice

void notice(java.lang.Object o)
Logs the specified object as a "notice" level message.

Parameters:
o - the object to log

noticeLine

void noticeLine(java.lang.Object o)
Logs the specified object as a "notice" level message and ends the current line of output.

Parameters:
o - the object to log

print

void print(java.lang.Object o)
Prints the specified object to the relevant output for this logger.

Parameters:
o - The Object to be printed

println

void println(java.lang.Object o)
Prints the specified object to the relevant output for this logger and then ends the line.

Parameters:
o - The Object to be printed

stackTrace

void stackTrace(java.lang.Throwable t)
Prints a stack trace for the specified throwable object, to the relevant output for this logger.

Parameters:
t - The throwable to print a stack trace for

warn

void warn(java.lang.Object o)
Logs the specified object as a "warn" level message.

Parameters:
o - the object to log

warnLine

void warnLine(java.lang.Object o)
Logs the specified object as a "warn" level message and ends the current line of output.

Parameters:
o - the object to log


Copyright © 2001-2007 Open World Ltd. All Rights Reserved.