org.log4s.LogLevel.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of log4s_2.12.0-M3 Show documentation
Show all versions of log4s_2.12.0-M3 Show documentation
High-performance SLF4J wrapper for Scala
package org.log4s
/** A severity level that can be assigned to log statements. */
sealed trait LogLevel {
/** The name of this log level. It is spelled with initial capitals */
def name: String = this.toString
/** The name of the SLF4J method that does logging at this level */
private[log4s] def methodName = name.toLowerCase
}
/** The highest logging severity. This generally indicates an
* application or system error that causes undesired outcomes.
* An error generally indicates a bug or an environment
* problem that warrants some kind of immediate intervention.
*/
case object Error extends LogLevel
/** Generally indicates something is not expected but the system is
* able to continue operating. This generally indicates a bug or
* environment problem that does not require urgent intervention.
*/
case object Warn extends LogLevel
/** Indicates normal high-level activity. Generally a single user– or
* system-initiated activity will trigger one or two info-level statements.
* (E.g., one when starting and one when finishing for complex requests.)
*/
case object Info extends LogLevel
/** Log statements that provide the ability to trace the progress and
* behavior involved in tracking a single activity. These are useful for
* debugging general issues, identifying how modules are interacting, etc.
*/
case object Debug extends LogLevel
/** Highly localized log statements useful for tracking the decisions made
* inside a single unit of code. These may occur at a very high frequency.
*/
case object Trace extends LogLevel
© 2015 - 2025 Weber Informatics LLC | Privacy Policy