reformat code

Signed-off-by: Gaël Bréard <gael.breard@orange.com>
This commit is contained in:
Gaël Bréard 2019-03-05 16:35:35 +01:00
parent aa74afb8b1
commit f2aac0a561
2 changed files with 20 additions and 22 deletions

View file

@ -102,7 +102,6 @@ private[akka] final class FunctionRef[-T](
override def isDebugEnabled: Boolean = actual.isDebugEnabled
override def withMdc(mdc: Map[String, Any]): Logger = actual.withMdc(mdc)
override def isErrorEnabled(marker: LogMarker): Boolean = actual.isErrorEnabled(marker)
override def isWarningEnabled(marker: LogMarker): Boolean = actual.isWarningEnabled(marker)
override def isInfoEnabled(marker: LogMarker): Boolean = actual.isInfoEnabled(marker)

View file

@ -147,12 +147,11 @@ abstract class Logger private[akka] () {
*/
def isErrorEnabled: Boolean
/**
* Whether error logging with this marker is enabled on the actor system level, may not represent the setting all
* the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log
* entries that will not actually end up in any logger output.
*/
* Whether error logging with this marker is enabled on the actor system level, may not represent the setting all
* the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log
* entries that will not actually end up in any logger output.
*/
def isErrorEnabled(marker: LogMarker): Boolean
/**
@ -163,10 +162,10 @@ abstract class Logger private[akka] () {
def isWarningEnabled: Boolean
/**
* Whether warning logging with this marker is enabled on the actor system level, may not represent the setting all
* the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log
* entries that will not actually end up in any logger output.
*/
* Whether warning logging with this marker is enabled on the actor system level, may not represent the setting all
* the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log
* entries that will not actually end up in any logger output.
*/
def isWarningEnabled(marker: LogMarker): Boolean
/**
@ -177,10 +176,10 @@ abstract class Logger private[akka] () {
def isInfoEnabled: Boolean
/**
* Whether info logging with this marker is enabled on the actor system level, may not represent the setting all
* the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log
* entries that will not actually end up in any logger output.
*/
* Whether info logging with this marker is enabled on the actor system level, may not represent the setting all
* the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log
* entries that will not actually end up in any logger output.
*/
def isInfoEnabled(marker: LogMarker): Boolean
/**
@ -191,10 +190,10 @@ abstract class Logger private[akka] () {
def isDebugEnabled: Boolean
/**
* Whether debug logging with this marker is enabled on the actor system level, may not represent the setting all
* the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log
* entries that will not actually end up in any logger output.
*/
* Whether debug logging with this marker is enabled on the actor system level, may not represent the setting all
* the way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log
* entries that will not actually end up in any logger output.
*/
def isDebugEnabled(marker: LogMarker): Boolean
/**
@ -211,10 +210,10 @@ abstract class Logger private[akka] () {
}
/**
* Whether a log level with this marker is enabled on the actor system level, may not represent the setting all the
* way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries
* that will not actually end up in any logger output.
*/
* Whether a log level with this marker is enabled on the actor system level, may not represent the setting all the
* way to the logger implementation, but when it does it allows avoiding unnecessary resource usage for log entries
* that will not actually end up in any logger output.
*/
def isLevelEnabled(logLevel: LogLevel, marker: LogMarker): Boolean = logLevel match {
case ErrorLevel isErrorEnabled(marker)
case WarningLevel isWarningEnabled(marker)