@Deprecated public final class Log extends Object
| Modifier and Type | Method and Description | 
|---|---|
static Log | 
get()
Deprecated.  
Returns an instance of Log for the desired module. 
 | 
static Log | 
get(String moduleName)
Deprecated.  
Returns an instance of Log for the desired module. 
 | 
Level | 
getLevel()
Deprecated.  
Get the logging level of this Logger. 
 | 
boolean | 
isLoggable(Level level)
Deprecated.  
Check if a log request of the given level would actually be logged
 by this logger. 
 | 
void | 
log(Level level,
   String msg)
Deprecated.  
Log a message. 
 | 
void | 
log(Level level,
   String msg,
   Object arg1)
Deprecated.  
Log a message with additional arguments
 to be concatenated to the log message. 
 | 
void | 
log(Level level,
   String msg,
   Object arg1,
   Object arg2)
Deprecated.  
Log a message with additional arguments
 to be concatenated to the log message. 
 | 
void | 
log(Level level,
   String msg,
   Object arg1,
   Object arg2,
   Object arg3)
Deprecated.  
Log a message with additional arguments
 to be concatenated to the log message. 
 | 
void | 
log(Level level,
   String msg,
   Object arg1,
   Object arg2,
   Object arg3,
   Object arg4)
Deprecated.  
Log a message with additional arguments
 to be concatenated to the log message. 
 | 
void | 
log(Level level,
   String msg,
   Object arg1,
   Object arg2,
   Object arg3,
   Object arg4,
   Object arg5)
Deprecated.  
Log a message with additional arguments
 to be concatenated to the log message. 
 | 
void | 
log(Level level,
   Throwable thrown,
   String msg)
Deprecated.  
Log a message with a throwable. 
 | 
void | 
log(LogRecord record)
Deprecated.  
Overwrite base log method to not count this class as a caller when determining
 calling class and method. 
 | 
public static Log get()
Constructs a Log instance encapsulating the default Logger, setting the module name to be that of the class calling this method.
public static Log get(String moduleName)
Constructs a Log instance encapsulating the default Logger, setting the module name to the specified name.
moduleName - name of the module using this Log instancepublic boolean isLoggable(Level level)
level - a message logging level, may not be nullpublic Level getLevel()
public void log(Level level, String msg)
level - the logging levelmsg - a String containing the message to logpublic void log(Level level, String msg, Object arg1)
level - the logging levelmsg - a String containing the message to log.arg1 - first logging argument.public void log(Level level, String msg, Object arg1, Object arg2)
level - the logging levelmsg - a String containing the message to log.arg1 - first logging argument.arg2 - second logging argument.public void log(Level level, String msg, Object arg1, Object arg2, Object arg3)
level - the logging levelmsg - a String containing the message to log.arg1 - first logging argument.arg2 - second logging argument.arg3 - third logging argument.public void log(Level level, String msg, Object arg1, Object arg2, Object arg3, Object arg4)
level - the logging levelmsg - a String containing the message to log.arg1 - first logging argument.arg2 - second logging argument.arg3 - third logging argument.arg4 - fourth logging argument.public void log(Level level, String msg, Object arg1, Object arg2, Object arg3, Object arg4, Object arg5)
level - the logging levelmsg - a String containing the message to log.arg1 - first logging argument.arg2 - second logging argument.arg3 - third logging argument.arg4 - fourth logging argument.arg5 - fifth logging argument.public void log(Level level, Throwable thrown, String msg)
level - the logging levelthrown - a Throwable to logmsg - a String containing the message to logpublic void log(LogRecord record)
record - the LogRecord to logCopyright © 2025. All rights reserved.