LoggingAdapter
Logging wrapper to make nicer and optimize: provide template versions which evaluate .toString only if the log level is actually enabled. Typically used by obtaining an implementation from the Logging object:
val log = Logging(<bus>, <source object>)
...
log.info("hello world!")
All log-level methods support simple interpolation templates with up to four arguments placed by using {} within the template (first string argument):
log.error(exception, "Exception while processing {} in state {}", msg, state)
More than four arguments can be defined by using an Array with the method with one argument parameter.
Attributes
- Source
- Logging.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class BusLoggingclass MarkerLoggingAdapterobject NoMarkerLoggingtrait DiagnosticLoggingAdapterobject NoLoggingShow all
Members list
Type members
Types
Attributes
- Source
- Logging.scala
Value members
Abstract methods
Attributes
- Source
- Logging.scala
Attributes
- Source
- Logging.scala
Attributes
- Source
- Logging.scala
Attributes
- Source
- Logging.scala
Attributes
- Source
- Logging.scala
Attributes
- Source
- Logging.scala
Attributes
- Source
- Logging.scala
Attributes
- Source
- Logging.scala
Attributes
- Source
- Logging.scala
Concrete methods
Log message at debug level.
Message template with 1 replacement argument.
Message template with 1 replacement argument.
If arg1 is an Array it will be expanded into replacement arguments, which is useful when there are more than four arguments.
Attributes
- See also
- Source
- Logging.scala
Message template with 2 replacement arguments.
Message template with 3 replacement arguments.
Message template with 4 replacement arguments.
Log message at error level, including the exception that caused the error.
Log message at error level, including the exception that caused the error.
Attributes
- See also
- Source
- Logging.scala
Message template with 1 replacement argument.
Message template with 1 replacement argument.
If arg1 is an Array it will be expanded into replacement arguments, which is useful when there are more than four arguments.
Attributes
- See also
- Source
- Logging.scala
Message template with 2 replacement arguments.
Message template with 3 replacement arguments.
Message template with 4 replacement arguments.
Log message at error level, without providing the exception that caused the error.
Log message at error level, without providing the exception that caused the error.
Attributes
- See also
- Source
- Logging.scala
Message template with 1 replacement argument.
Message template with 1 replacement argument.
If arg1 is an Array it will be expanded into replacement arguments, which is useful when there are more than four arguments.
Attributes
- See also
- Source
- Logging.scala
Message template with 2 replacement arguments.
Message template with 3 replacement arguments.
Message template with 4 replacement arguments.
Attributes
- Source
- Logging.scala
Log message at info level.
Message template with 1 replacement argument.
Message template with 1 replacement argument.
If arg1 is an Array it will be expanded into replacement arguments, which is useful when there are more than four arguments.
Attributes
- See also
- Source
- Logging.scala
Message template with 2 replacement arguments.
Message template with 3 replacement arguments.
Message template with 4 replacement arguments.
Attributes
- Returns
-
true if the specified log level is enabled
- Source
- Logging.scala
Log message at the specified log level.
Message template with 1 replacement argument.
Message template with 1 replacement argument.
If arg1 is an Array it will be expanded into replacement arguments, which is useful when there are more than four arguments.
Attributes
- Source
- Logging.scala
Message template with 2 replacement arguments.
Message template with 3 replacement arguments.
Message template with 4 replacement arguments.
Attributes
- Source
- Logging.scala
Attributes
- Source
- Logging.scala
Attributes
- Source
- Logging.scala
Log message at warning level, including the exception that indicated the warning.
Log message at warning level, including the exception that indicated the warning.
Attributes
- See also
- Source
- Logging.scala
Message template with 1 replacement argument.
Message template with 1 replacement argument.
If arg1 is an Array it will be expanded into replacement arguments, which is useful when there are more than four arguments.
Attributes
- See also
- Source
- Logging.scala
Message template with 2 replacement arguments.
Message template with 3 replacement arguments.
Message template with 4 replacement arguments.
Log message at warning level.
Message template with 1 replacement argument.
Message template with 1 replacement argument.
If arg1 is an Array it will be expanded into replacement arguments, which is useful when there are more than four arguments.
Attributes
- See also
- Source
- Logging.scala
Message template with 2 replacement arguments.
Message template with 3 replacement arguments.
Message template with 4 replacement arguments.