
rapture.log.levels.scala Maven / Gradle / Ivy
/******************************************************************************************************************\
* Rapture Log, version 2.0.0. Copyright 2010-2015 Jon Pretty, Propensive Ltd. *
* *
* The primary distribution site is http://rapture.io/ *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in complance *
* with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. *
* *
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed *
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License *
* for the specific language governing permissions and limitations under the License. *
\******************************************************************************************************************/
package rapture.log
trait LogLevel
trait Trace extends LogLevel
trait Debug extends Trace
trait Info extends Debug
trait Warn extends Info
trait Error extends Warn
trait Fatal extends Error
object logLevels {
object trace {
implicit val logLevelImplicit: NamedLogAction = new NamedLogAction(0, "trace")
}
object debug {
implicit val logLevelImplicit: NamedLogAction = new NamedLogAction(1, "debug")
}
object info {
implicit val logLevelImplicit: NamedLogAction = new NamedLogAction(2, "info")
}
object warn {
implicit val logLevelImplicit: NamedLogAction = new NamedLogAction(3, "warn")
}
object error {
implicit val logLevelImplicit: NamedLogAction = new NamedLogAction(4, "error")
}
object fatal {
implicit val logLevelImplicit: NamedLogAction = new NamedLogAction(5, "fatal")
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy