public abstract class YaessLogger extends Object
| Constructor and Description |
|---|
YaessLogger(Class<?> target,
String componentName)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
error(Exception exception,
String code,
Object... arguments)
Log a message at ERROR level.
|
void |
error(String code,
Object... arguments)
Log a message at ERROR level.
|
protected abstract String |
getMessage(String code,
Object... arguments)
Returns the message corrensponded to the code.
|
void |
info(Exception exception,
String code,
Object... arguments)
Log a message at WARN level.
|
void |
info(String code,
Object... arguments)
Log a message at INFO level.
|
void |
warn(Exception exception,
String code,
Object... arguments)
Log a message at WARN level.
|
void |
warn(String code,
Object... arguments)
Log a message at WARN level.
|
public YaessLogger(Class<?> target, String componentName)
target - target classescomponentName - the target component nameIllegalArgumentException - if some parameters were nullpublic void info(String code, Object... arguments)
code - the message codearguments - the argumentsIllegalArgumentException - if some parameters were nullpublic void info(Exception exception, String code, Object... arguments)
exception - the context exceptioncode - the message codearguments - the argumentsIllegalArgumentException - if some parameters were nullpublic void warn(String code, Object... arguments)
code - the message codearguments - the argumentsIllegalArgumentException - if some parameters were nullpublic void warn(Exception exception, String code, Object... arguments)
exception - the context exceptioncode - the message codearguments - the argumentsIllegalArgumentException - if some parameters were nullpublic void error(String code, Object... arguments)
code - the message codearguments - the argumentsIllegalArgumentException - if some parameters were nullpublic void error(Exception exception, String code, Object... arguments)
exception - the context exceptioncode - the message codearguments - the argumentsIllegalArgumentException - if some parameters were nullprotected abstract String getMessage(String code, Object... arguments)
code - message codearguments - message argumentsIllegalArgumentException - if some parameters were nullCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.