Methods' Details |
getLogger
XLogger |
getLogger( |
[in] string |
name ); |
- Description
- Just to adhere to the API known from the standalone scenario.
You can use it to create a new Logger, but to bootstrap the first
logger you need a createInstanceWithArguments(string logger)
or equivalent.
- Parameter host
-
host of the caller
- Returns
- XLogger instance
|
|
getLevel
- Description
- gets logging level of this XLogger
- Returns
- logging level of this XLogger
|
|
getName
- Description
- gets name of this XLogger
- Returns
- name of this XLogger
|
|
isLoggable
boolean |
isLoggable( |
[in] long |
level ); |
- Description
- will this XLogger instance produce any output for the given level?
can be used to optimize performance as maybe complex parameter evaluation
in the logp call can be omitted if isLoggable evaluates to false
- Parameter level
-
level to be checked against
- Returns
- true if there will be some output for this XLogger for the given level,
false otherwise
|
|
logp
[oneway] void |
logp( |
[in] long |
level, |
| [in] string |
sourceClass, |
| [in] string |
sourceMethod, |
| [in] string |
msg ); |
- Description
- Log a message. The p in logp is derived from "precise" as given
is the java.util.logging API
- Parameter level
-
the log level of this message
- Parameter sourceClass
-
name of class that issued the logging request
- Parameter sourceMethod
-
name of method that issued the logging request
- Parameter msg
-
the string message
|
|
Copyright © 2003 Sun Microsystems, Inc.