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 null
public void info(String code, Object... arguments)
code
- the message codearguments
- the argumentsIllegalArgumentException
- if some parameters were null
public void info(Exception exception, String code, Object... arguments)
exception
- the context exceptioncode
- the message codearguments
- the argumentsIllegalArgumentException
- if some parameters were null
public void warn(String code, Object... arguments)
code
- the message codearguments
- the argumentsIllegalArgumentException
- if some parameters were null
public void warn(Exception exception, String code, Object... arguments)
exception
- the context exceptioncode
- the message codearguments
- the argumentsIllegalArgumentException
- if some parameters were null
public void error(String code, Object... arguments)
code
- the message codearguments
- the argumentsIllegalArgumentException
- if some parameters were null
public void error(Exception exception, String code, Object... arguments)
exception
- the context exceptioncode
- the message codearguments
- the argumentsIllegalArgumentException
- if some parameters were null
protected abstract String getMessage(String code, Object... arguments)
code
- message codearguments
- message argumentsIllegalArgumentException
- if some parameters were null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.