Package com.polarion.core.util.logging
Class Logger
java.lang.Object
com.polarion.core.util.logging.Logger
- All Implemented Interfaces:
ILogger
This class represents the main Logger object used to obtain
logger instances.
Example:
ILogger logger = Logger.getLogger(this);
logger.warn("message");
- Since:
- 3.22.2
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.polarion.core.util.logging.ILogger
debug, debug, error, error, fatal, fatal, info, info, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, trace, warn, warn
-
Constructor Details
-
Logger
public Logger()
-
-
Method Details
-
getLogger
A method to obtain the logger instance to perform logging.Example:
Logger.getLogger("SomeClient")
.- Parameters:
client
- the String representation of the object that wants to perform logging- Returns:
- a logger instance that may be used by the client
-
getLogger
A method to obtain the logger instance to perform logging.Example:
Logger.getLogger(SomeClass.class)
.- Parameters:
client
- the class that wants to perform logging- Returns:
- a logger instance that may be used by the client
-
getLogger
A method to obtain the logger instance to perform logging.The recommended pattern is always calling
Logger.getLogger(this)
.- Parameters:
client
- the object that wants to perform logging- Returns:
- a logger instance that may be used by the client
-