-
log
default void log(System.Logger.Level level,
Object obj)
Logs a message produced from the given object. If the logger is currently enabled for the given log message level then a message is logged that, by default, is the result produced from calling toString on the given object. Otherwise, the object is not operated on.
-
Implementation Requirements:
- When logging is enabled for the given level, the default implementation for this method calls
this.log(level, (ResourceBundle)null, obj.toString(), (Object[])null);
-
Parameters:
-
level - the log message level.
-
obj - the object to log.
-
Throws:
-
NullPointerException - if level is null , or obj is null .
|
|