Package net.sf.jaxodraw.logging
Interface JaxoLogger
- All Known Implementing Classes:
JaxoDefaultLogger
public interface JaxoLogger
Interface that defines a logger for JaxoDraw.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptiongetLevel()
Returns the current log level of this Logger.boolean
isLoggable
(Level level) Check if a message of the given level would actually be logged by this logger.void
Logs an exception and/or a message at a given level.void
Sets the logging level.
-
Method Details
-
log
Logs an exception and/or a message at a given level. Either the message or the exception have to be non-null.- Parameters:
level
- the log level.message
- a message to log.e
- an exception to log.
-
isLoggable
Check if a message of the given level would actually be logged by this logger.- Parameters:
level
- a message logging level.- Returns:
- true if the given message level is currently being logged.
-
setLevel
Sets the logging level. Currently only Level.FINE, Level.INFO and Level.WARNING are used by JaxoDraw.- Parameters:
level
- the log level to set.
-
getLevel
Level getLevel()Returns the current log level of this Logger.- Returns:
- the current log level.
-