public class LocalizedLogger extends Object implements ILocalizedLogger
| Constructor and Description |
|---|
LocalizedLogger(ILocalizationManager localizationManager,
Logger logger,
ILoggerConfiguration loggerConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
void |
debug(String messageKey,
Object... args)
Logs localized message with DEBUG level.
|
void |
debug(String messageKey,
Throwable throwable,
Object... args)
Logs localized message with DEBUG level.
|
void |
error(String messageKey,
Object... args)
Logs localized message with ERROR level.
|
void |
fatal(String messageKey,
Throwable throwable,
Object... args)
Logs localized message with FATAL level.
|
ILoggerConfiguration |
getConfiguration()
Gets logger configuration.
|
void |
info(String messageKey,
Object... args)
Logs localized message with INFO level.
|
void |
infoElementAction(String elementType,
String elementName,
String messageKey,
Object... args)
Logs localized message for action with INFO level which is applied for element, for example, click, send keys etc.
|
void |
warn(String messageKey,
Object... args)
Logs localized message with WARN level.
|
@Inject public LocalizedLogger(ILocalizationManager localizationManager, Logger logger, ILoggerConfiguration loggerConfiguration)
public ILoggerConfiguration getConfiguration()
ILocalizedLoggergetConfiguration in interface ILocalizedLoggerpublic void infoElementAction(String elementType, String elementName, String messageKey, Object... args)
ILocalizedLoggerinfoElementAction in interface ILocalizedLoggerelementType - Type of the element.elementName - Name of the element.messageKey - Key in resource file.args - Arguments, which will be provided to template of localized message.public void info(String messageKey, Object... args)
ILocalizedLoggerinfo in interface ILocalizedLoggermessageKey - Key in resource file.args - Arguments, which will be provided to template of localized message.public void debug(String messageKey, Object... args)
ILocalizedLoggerdebug in interface ILocalizedLoggermessageKey - Key in resource file.args - Arguments, which will be provided to template of localized message.public void debug(String messageKey, Throwable throwable, Object... args)
ILocalizedLoggerdebug in interface ILocalizedLoggermessageKey - Key in resource file.throwable - Throwable to log.args - Arguments, which will be provided to template of localized message.public void warn(String messageKey, Object... args)
ILocalizedLoggerwarn in interface ILocalizedLoggermessageKey - Key in resource file.args - Arguments, which will be provided to template of localized message.public void error(String messageKey, Object... args)
ILocalizedLoggererror in interface ILocalizedLoggermessageKey - Key in resource file.args - Arguments, which will be provided to template of localized message.public void fatal(String messageKey, Throwable throwable, Object... args)
ILocalizedLoggerfatal in interface ILocalizedLoggermessageKey - Key in resource file.throwable - Throwable to log.args - Arguments, which will be provided to template of localized message.Copyright © 2020. All rights reserved.