- java.lang.Object
-
- ilusr.logrunner.LogManager
-
public class LogManager extends Object
- Author:
- Jeff Riggle
-
-
Constructor Summary
Constructors Constructor Description LogManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHandler(Handler handler)
Adds another logging handler.void
all(String message)
Logs a message the at the ALL level.void
config(String message)
Logs a message the at the CONFIG level.void
fine(String message)
Logs a message the at the FINE level.void
finer(String message)
Logs a message the at the FINER level.void
finest(String message)
Logs a message the at the FINEST level.void
info(String message)
Logs a message the at the INFO level.void
off(String message)
Logs a message the at the INFO level.void
setLevel(Level newLevel)
Sets the logging level.void
severe(Exception exception)
Logs a message the at the SEVERE level.void
severe(String message)
Logs a message the at the SEVERE level.void
warning(String message)
Logs a message the at the WARNING level.
-
-
-
Method Detail
-
setLevel
public void setLevel(Level newLevel)
Sets the logging level.- Parameters:
newLevel
- The new level to use for logging.
-
addHandler
public void addHandler(Handler handler)
Adds another logging handler.- Parameters:
handler
- The handler to add.
-
all
public void all(String message)
Logs a message the at the ALL level.- Parameters:
message
- The message to log.
-
config
public void config(String message)
Logs a message the at the CONFIG level.- Parameters:
message
- The message to log.
-
fine
public void fine(String message)
Logs a message the at the FINE level.- Parameters:
message
- The message to log.
-
finer
public void finer(String message)
Logs a message the at the FINER level.- Parameters:
message
- The message to log.
-
finest
public void finest(String message)
Logs a message the at the FINEST level.- Parameters:
message
- The message to log.
-
info
public void info(String message)
Logs a message the at the INFO level.- Parameters:
message
- The message to log.
-
off
public void off(String message)
Logs a message the at the INFO level.- Parameters:
message
- The message to log.
-
severe
public void severe(String message)
Logs a message the at the SEVERE level.- Parameters:
message
- The message to log.
-
severe
public void severe(Exception exception)
Logs a message the at the SEVERE level.- Parameters:
exception
- The exception to log.
-
warning
public void warning(String message)
Logs a message the at the WARNING level.- Parameters:
message
- The message to log.
-
-