Package overit.geocall.util.log
Class LogChannel
java.lang.Object
overit.geocall.util.log.LogChannel
Class that manages the log channel for all the logging data
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LogChannelThis method can be called to inizialize and get aLogChannelfor the passed class.static LogChannelThis method can be called only from a static context, to inizialize and get only one time a local staticLogChannelit thorws an AssertionException fgetName()Returns the name of theLogChannelbooleanDeprecated.booleanbooleanDeprecated.protected voidmessage(String discardClass, Level level, LogMessage msg, Throwable t) voidmessage(Level level, LogMessage msg, Throwable t) Out a messagevoidmessage(LogLevel level, LogMessage msg, Throwable t) Deprecated.usemessage(Level, LogMessage, Throwable)instead.voidOutvoidLogs a Message using the provided parameters.voidOutvoidOutvoidDeprecated.useout(String, Level, String, Throwable)instead.voidOutvoidOutvoidLogs a Message using the provided parameters.voidOutvoidOutvoidDeprecated.useout(Level, String)instead.voidDeprecated.useout(Level, String, Throwable)instead.voidDeprecated.useout(Level, Throwable)instead.protected static String
-
Field Details
-
DISCARD_CLASS
-
name
-
logger
-
-
Constructor Details
-
LogChannel
-
LogChannel
-
-
Method Details
-
forClass
This method can be called to inizialize and get aLogChannelfor the passed class. The recommendation is to use it in static contexts to initialize a local static log channel for the class- Parameters:
c- the class for which you are requesting the LogChannel- Returns:
- LogChannel for c
-
forThisClass
This method can be called only from a static context, to inizialize and get only one time a local staticLogChannelit thorws an AssertionException f- Returns:
- LogChannel for the current class
-
getName
Returns the name of theLogChannel- Returns:
- The name of the
LogChannel
-
isEnabled
Deprecated.- Returns:
trueif Level.INFO is greater or equal compared to the effective level,falseotherwise
-
isEnabled
- Parameters:
level- The effective level to compare- Returns:
trueif Level.INFO is greater or equal compared to the effective level,falseotherwise
-
isEnabled
Deprecated.useisEnabled(Level)instead.- Parameters:
level- The effective level to compare- Returns:
trueif Level.INFO is greater or equal compared to the effective level,falseotherwise
-
toString
-
out
Out- Parameters:
msg- The message
-
out
Out- Parameters:
level- The severity level of the messagemsg- The string containing the message
-
out
Deprecated.useout(Level, String)instead.Out- Parameters:
level- The severity level of the messagemsg- The string containing the message
-
out
Out- Parameters:
t- TheThrowable
-
out
Out- Parameters:
level- The severity level of the messaget- TheThrowable
-
out
Deprecated.useout(Level, Throwable)instead.Out- Parameters:
level- The severity level of the messaget- TheThrowable
-
out
Out- Parameters:
msg- The string containing the messaget- TheThrowable
-
out
Out- Parameters:
level- The severity level of the messagemsg- The string containing the messaget- TheThrowable
-
out
Deprecated.useout(Level, String, Throwable)instead.Out- Parameters:
level- The severity level of the messagemsg- The string containing the messaget- TheThrowable
-
out
Out- Parameters:
discardClass- The discard class stringlevel- The severity level of the messagemsg- String containing the messaget- TheThrowable
-
out
Deprecated.useout(String, Level, String, Throwable)instead.Out- Parameters:
discardClass- The discard class stringlevel- The severity level of the messagemsg- String containing the messaget- TheThrowable
-
out
Logs a Message using the provided parameters.- Parameters:
level- The severity level of the message.format-Stringcontaining the message (with any placeholder '{}' to be replaced with message parameters).arguments- Message parameters.
-
out
Logs a Message using the provided parameters.- Parameters:
msg-Stringcontaining the message (with any placeholder '{}' to be replaced with message parameters).arguments- The arguments to be included in the log message.
-
message
Out a message- Parameters:
level- The severity level of the messagemsg- TheLogMessaget- TheThrowable
-
message
Deprecated.usemessage(Level, LogMessage, Throwable)instead.Out a message- Parameters:
level- The severity level of the messagemsg- TheLogMessaget- TheThrowable
-
message
-
isEnabled(Level)instead.