Remove isEnabled from Scala API
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/403bb132 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/403bb132 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/403bb132 Branch: refs/heads/LOG4J2-1010&LOG4J2-1447-injectable-contextdata&better-datastructure Commit: 403bb1324b390ff891fad385f882e47248225b2f Parents: 4668ce2 Author: Mikael Ståldal <mik...@staldal.nu> Authored: Sat Jul 2 17:09:13 2016 +0200 Committer: Mikael Ståldal <mik...@staldal.nu> Committed: Sat Jul 2 17:09:13 2016 +0200 ---------------------------------------------------------------------- .../org/apache/logging/log4j/scala/Logger.scala | 20 -------------------- .../org/apache/logging/log4j/scala/Logger.scala | 20 -------------------- 2 files changed, 40 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/403bb132/log4j-api-scala_2.10/src/main/scala/org/apache/logging/log4j/scala/Logger.scala ---------------------------------------------------------------------- diff --git a/log4j-api-scala_2.10/src/main/scala/org/apache/logging/log4j/scala/Logger.scala b/log4j-api-scala_2.10/src/main/scala/org/apache/logging/log4j/scala/Logger.scala index a5ebacf..4ad20e1 100644 --- a/log4j-api-scala_2.10/src/main/scala/org/apache/logging/log4j/scala/Logger.scala +++ b/log4j-api-scala_2.10/src/main/scala/org/apache/logging/log4j/scala/Logger.scala @@ -413,26 +413,6 @@ class Logger private(val delegate: ExtendedLogger) { /** - * Checks whether this Logger is enabled for the given `Level`. - * - * Note that passing in `Level.OFF` always returns `true`. - * - * @param level the Level to check - * @return boolean - `true` if this Logger is enabled for the level, `false` otherwise - */ - def isEnabled(level: Level): Boolean = delegate.isEnabled(level) - - /** - * Checks whether this Logger is enabled for the given `Level` and `Marker`. - * - * @param level the Level to check - * @param marker the Marker to check - * @return boolean - `true` if this Logger is enabled for the level and marker, `false` otherwise - */ - def isEnabled(level: Level, marker: Marker): Boolean = delegate.isEnabled(level, marker) - - - /** * Logs entry to a method. Used when the method in question has no parameters or when the parameters should not be * logged. * http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/403bb132/log4j-api-scala_2.11/src/main/scala/org/apache/logging/log4j/scala/Logger.scala ---------------------------------------------------------------------- diff --git a/log4j-api-scala_2.11/src/main/scala/org/apache/logging/log4j/scala/Logger.scala b/log4j-api-scala_2.11/src/main/scala/org/apache/logging/log4j/scala/Logger.scala index a5ebacf..4ad20e1 100644 --- a/log4j-api-scala_2.11/src/main/scala/org/apache/logging/log4j/scala/Logger.scala +++ b/log4j-api-scala_2.11/src/main/scala/org/apache/logging/log4j/scala/Logger.scala @@ -413,26 +413,6 @@ class Logger private(val delegate: ExtendedLogger) { /** - * Checks whether this Logger is enabled for the given `Level`. - * - * Note that passing in `Level.OFF` always returns `true`. - * - * @param level the Level to check - * @return boolean - `true` if this Logger is enabled for the level, `false` otherwise - */ - def isEnabled(level: Level): Boolean = delegate.isEnabled(level) - - /** - * Checks whether this Logger is enabled for the given `Level` and `Marker`. - * - * @param level the Level to check - * @param marker the Marker to check - * @return boolean - `true` if this Logger is enabled for the level and marker, `false` otherwise - */ - def isEnabled(level: Level, marker: Marker): Boolean = delegate.isEnabled(level, marker) - - - /** * Logs entry to a method. Used when the method in question has no parameters or when the parameters should not be * logged. *