Package edu.uiuc.ncsa.security.core
Interface Logable
-
- All Known Subinterfaces:
Commands,MailUtilInterface
- All Known Implementing Classes:
AbstractCommandsImpl,AbstractEnvironment,AbstractServlet,CLITool2,CommonCommands,CommonCommands2,ConfigurableCommandsImpl,ConfigurableCommandsImpl2,JakartaMailUtil,MailEnvironment,MailUtil,MyLoggingFacade,SASCLIDriver.DC,SASCommands,SASEnvironment,SASServlet,ServletMailUtil,StoreCommands,StoreCommands2,TestCCI,TestCCI.CCIComponent,TestCommands,TestEnvironment,VerifyingHTTPClientFactory
public interface LogableCreated 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!
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddebug(String x)Write a debug message to the log.voiderror(String x)Write an error message to the log.voidinfo(String x)Write an informational message to the logbooleanisDebugOn()Query if debugging is enabled for this logger.voidsetDebugOn(boolean setOn)Enable/disable debugging for this loggervoidwarn(String x)Write a warning to the log.
-
-
-
Method Detail
-
isDebugOn
boolean isDebugOn()
Query if debugging is enabled for this logger.- Returns:
-
setDebugOn
void setDebugOn(boolean setOn)
Enable/disable debugging for this logger- Parameters:
setOn-
-
debug
void debug(String x)
Write a debug message to the log.- Parameters:
x-
-
info
void info(String x)
Write an informational message to the log- Parameters:
x-
-
warn
void warn(String x)
Write a warning to the log. This indicates a severe, but non-fatal condition exists.- Parameters:
x-
-
error
void error(String x)
Write an error message to the log. Typically this is invoked as the last command before throwing an exception.- Parameters:
x-
-
-