Package edu.uiuc.ncsa.security.core
Interface Logable
-
- All Known Subinterfaces:
Commands
,MailUtilInterface
- All Known Implementing Classes:
AbstractEnvironment
,AbstractServlet
,CLITool
,CommonCommands
,ConfigurableCommandsImpl
,JakartaMailUtil
,MailEnvironment
,MailUtil
,MyLoggingFacade
,ParserCommands
,SASCommands
,SASEnvironment
,SASServlet
,ServletMailUtil
,StoreCommands
,StoreUtil
,TestEnvironment
,VerifyingHTTPClientFactory
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!
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 logboolean
isDebugOn()
Query if debugging is enabled for this logger.void
setDebugOn(boolean setOn)
Enable/disable debugging for this loggervoid
warn(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
-
-
-