public class Logging$
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Logging$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
Logging$() |
Modifier and Type | Method and Description |
---|---|
scala.collection.immutable.Seq<Logging.LogLevel> |
AllLogLevels() |
DiagnosticLoggingAdapter |
apply(Actor logSource)
Obtain LoggingAdapter with MDC support for the given actor.
|
<T> LoggingAdapter |
apply(ActorSystem system,
T logSource,
LogSource<T> evidence$3)
Obtain LoggingAdapter for the given actor system and source object.
|
<T> LoggingAdapter |
apply(LoggingBus bus,
T logSource,
LogSource<T> evidence$5)
Obtain LoggingAdapter for the given logging bus and source object.
|
java.lang.Class<? extends Logging.LogEvent> |
classFor(Logging.LogLevel level)
Returns the event class associated with the given LogLevel
|
Logging.LogLevel |
DebugLevel() |
scala.collection.immutable.Map<java.lang.String,java.lang.Object> |
emptyMDC()
LoggingAdapter extension which adds MDC support.
|
Logging.LogLevel |
ErrorLevel() |
DiagnosticLoggingAdapter |
getLogger(Actor logSource)
Obtain LoggingAdapter with MDC support for the given actor.
|
LoggingAdapter |
getLogger(ActorSystem system,
java.lang.Object logSource)
Obtain LoggingAdapter for the given actor system and source object.
|
LoggingAdapter |
getLogger(LoggingBus bus,
java.lang.Object logSource)
Obtain LoggingAdapter for the given logging bus and source object.
|
DiagnosticLoggingAdapter |
getLogger(UntypedActor logSource)
Obtain LoggingAdapter with MDC support for the given actor.
|
Logging.LogLevel |
InfoLevel() |
Logging.LogLevel |
levelFor(java.lang.Class<? extends Logging.LogEvent> eventClass) |
scala.Option<Logging.LogLevel> |
levelFor(java.lang.String s) |
Logging.LoggerInitialized$ |
loggerInitialized() |
java.lang.String |
messageClassName(java.lang.Object message) |
akka.event.Logging.Error.NoCause$ |
noCause() |
java.lang.String |
simpleName(java.lang.Class<?> clazz) |
java.lang.String |
simpleName(java.lang.Object obj) |
java.lang.String |
stackTraceFor(java.lang.Throwable e) |
Logging.StandardOutLogger |
StandardOutLogger() |
Logging.LogLevel |
WarningLevel() |
DiagnosticMarkerBusLoggingAdapter |
withMarker(Actor logSource) |
<T> MarkerLoggingAdapter |
withMarker(ActorSystem system,
T logSource,
LogSource<T> evidence$4)
Obtain LoggingAdapter with additional "marker" support (which some logging frameworks are able to utilise)
for the given actor system and source object.
|
<T> MarkerLoggingAdapter |
withMarker(LoggingBus bus,
T logSource,
LogSource<T> evidence$6)
Obtain LoggingAdapter for the given logging bus and source object.
|
public static final Logging$ MODULE$
public java.lang.String simpleName(java.lang.Object obj)
public java.lang.String simpleName(java.lang.Class<?> clazz)
public java.lang.String messageClassName(java.lang.Object message)
public final Logging.LogLevel ErrorLevel()
public final Logging.LogLevel WarningLevel()
public final Logging.LogLevel InfoLevel()
public final Logging.LogLevel DebugLevel()
public scala.Option<Logging.LogLevel> levelFor(java.lang.String s)
public Logging.LogLevel levelFor(java.lang.Class<? extends Logging.LogEvent> eventClass)
public java.lang.Class<? extends Logging.LogEvent> classFor(Logging.LogLevel level)
level
- (undocumented)public scala.collection.immutable.Seq<Logging.LogLevel> AllLogLevels()
public <T> LoggingAdapter apply(ActorSystem system, T logSource, LogSource<T> evidence$3)
Do not use this if you want to supply a log category string (like
“com.example.app.whatever”) unaltered, supply system.eventStream
in this
case or use
Logging(system, this.getClass)
The source is used to identify the source of this logging channel and
must have a corresponding implicit LogSource[T] instance in scope; by
default these are provided for Class[_], Actor, ActorRef and String types.
See the companion object of LogSource
for details.
You can add your own rules quite easily, see LogSource
.
system
- (undocumented)logSource
- (undocumented)evidence$3
- (undocumented)public <T> MarkerLoggingAdapter withMarker(ActorSystem system, T logSource, LogSource<T> evidence$4)
Do not use this if you want to supply a log category string (like
“com.example.app.whatever”) unaltered, supply system.eventStream
in this
case or use
Logging(system, this.getClass)
The source is used to identify the source of this logging channel and
must have a corresponding implicit LogSource[T] instance in scope; by
default these are provided for Class[_], Actor, ActorRef and String types.
See the companion object of LogSource
for details.
You can add your own rules quite easily, see LogSource
.
system
- (undocumented)logSource
- (undocumented)evidence$4
- (undocumented)public <T> LoggingAdapter apply(LoggingBus bus, T logSource, LogSource<T> evidence$5)
The source is used to identify the source of this logging channel and
must have a corresponding implicit LogSource[T] instance in scope; by
default these are provided for Class[_], Actor, ActorRef and String types.
See the companion object of LogSource
for details.
You can add your own rules quite easily, see LogSource
.
Note that this LoggingAdapter
will use the DefaultLoggingFilter
,
and not the LoggingFilter
configured for the system
(if different from DefaultLoggingFilter
).
bus
- (undocumented)logSource
- (undocumented)evidence$5
- (undocumented)public <T> MarkerLoggingAdapter withMarker(LoggingBus bus, T logSource, LogSource<T> evidence$6)
The source is used to identify the source of this logging channel and
must have a corresponding implicit LogSource[T] instance in scope; by
default these are provided for Class[_], Actor, ActorRef and String types.
See the companion object of LogSource
for details.
You can add your own rules quite easily, see LogSource
.
Note that this LoggingAdapter
will use the DefaultLoggingFilter
,
and not the LoggingFilter
configured for the system
(if different from DefaultLoggingFilter
).
bus
- (undocumented)logSource
- (undocumented)evidence$6
- (undocumented)public DiagnosticLoggingAdapter apply(Actor logSource)
logSource
- (undocumented)public DiagnosticMarkerBusLoggingAdapter withMarker(Actor logSource)
public LoggingAdapter getLogger(ActorSystem system, java.lang.Object logSource)
Do not use this if you want to supply a log category string (like
“com.example.app.whatever”) unaltered, supply system.eventStream
in this
case or use
Logging.getLogger(system, this.getClass());
The source is used to identify the source of this logging channel and
must have a corresponding implicit LogSource[T] instance in scope; by
default these are provided for Class[_], Actor, ActorRef and String types.
See the companion object of LogSource
for details.
system
- (undocumented)logSource
- (undocumented)public LoggingAdapter getLogger(LoggingBus bus, java.lang.Object logSource)
The source is used to identify the source of this logging channel and
must have a corresponding implicit LogSource[T] instance in scope; by
default these are provided for Class[_], Actor, ActorRef and String types.
See the companion object of LogSource
for details.
Note that this LoggingAdapter
will use the DefaultLoggingFilter
,
and not the LoggingFilter
configured for the system
(if different from DefaultLoggingFilter
).
bus
- (undocumented)logSource
- (undocumented)public DiagnosticLoggingAdapter getLogger(Actor logSource)
logSource
- (undocumented)public DiagnosticLoggingAdapter getLogger(UntypedActor logSource)
logSource
- (undocumented)public akka.event.Logging.Error.NoCause$ noCause()
public Logging.LoggerInitialized$ loggerInitialized()
public Logging.StandardOutLogger StandardOutLogger()
public java.lang.String stackTraceFor(java.lang.Throwable e)
public scala.collection.immutable.Map<java.lang.String,java.lang.Object> emptyMDC()