|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.javasimon.callback.CallbackSkeleton
org.javasimon.utils.SLF4JLoggingCallback
public class SLF4JLoggingCallback
LoggingCallback logs events via SLF4J logging.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.javasimon.callback.Callback |
|---|
Callback.Event |
| Field Summary | |
|---|---|
private org.slf4j.Logger |
logger
|
private org.slf4j.Marker |
marker
|
| Constructor Summary | |
|---|---|
SLF4JLoggingCallback()
|
|
| Method Summary | |
|---|---|
org.slf4j.Logger |
getLogger()
Returns logger used to log messages. |
org.slf4j.Marker |
getMarker()
Returns the specified log marker for messages. |
void |
onManagerMessage(String message)
Logs the message on a specified log marker. |
void |
onManagerWarning(String warning,
Exception cause)
Logs the warning on a specified log marker. |
void |
onStopwatchStart(Split split)
Logs Simon start on a sprecified log marker. |
void |
onStopwatchStop(Split split,
StopwatchSample sample)
Logs Simon stop on a specified log marker. |
void |
setLogger(org.slf4j.Logger logger)
Sets the logger that will be used to log messages. |
void |
setMarker(org.slf4j.Marker marker)
Sets the marker that will be used to log messages. |
void |
setMarker(String marker)
Sets the marker via marker name - used by the configure facility to configure the callback. |
| Methods inherited from class org.javasimon.callback.CallbackSkeleton |
|---|
cleanup, initialize, onCounterDecrease, onCounterIncrease, onCounterSet, onManagerClear, onSimonCreated, onSimonDestroyed, onSimonReset, onStopwatchAdd, onStopwatchAdd |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private org.slf4j.Logger logger
private org.slf4j.Marker marker
| Constructor Detail |
|---|
public SLF4JLoggingCallback()
| Method Detail |
|---|
public void onStopwatchStart(Split split)
onStopwatchStart in interface CallbackonStopwatchStart in class CallbackSkeletonsplit - started split
public void onStopwatchStop(Split split,
StopwatchSample sample)
onStopwatchStop in interface CallbackonStopwatchStop in class CallbackSkeletonsplit - stopped splitsample -
public void onManagerWarning(String warning,
Exception cause)
onManagerWarning in interface CallbackonManagerWarning in class CallbackSkeletonwarning - warning messagecause - throwable causepublic void onManagerMessage(String message)
onManagerMessage in interface CallbackonManagerMessage in class CallbackSkeletonmessage - messagepublic org.slf4j.Logger getLogger()
public void setLogger(org.slf4j.Logger logger)
logger - new specified loggerpublic org.slf4j.Marker getMarker()
public void setMarker(org.slf4j.Marker marker)
marker - log marker used to log messagespublic void setMarker(String marker)
marker - name of the marker
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||