public interface Logable
Created by Jeff Gaynor
on Nov 9, 2010 at 11:03:07 AM
Interface for logging. Things that need to log implement this interface. Note that there is a
debug flag. If this is on, then calls to debug will print, otherwise they are
disabled. Be warned that the argument to all of these, being strings, are evaluated first.
Expensive formatting for debug statements can still slow down your application even if
debugging is off!
Modifier and Type | Method and Description |
---|---|
void |
debug(String x)
Write a debug message to the log.
|
void |
error(String x)
Write an error message to the log.
|
void |
info(String x)
Write an informational message to the log
|
boolean |
isDebugOn()
Query if debugging is enabled for this logger.
|
void |
setDebugOn(boolean setOn)
Enable/disable debugging for this logger
|
void |
warn(String x)
Write a warning to the log.
|
boolean isDebugOn()
void setDebugOn(boolean setOn)
setOn
- void debug(String x)
x
- void info(String x)
x
- void warn(String x)
x
- void error(String x)
x
- Copyright © 2019. All Rights Reserved.