logging

de.rmgk.logging
object logging

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
logging.type

Members list

Type members

Classlikes

case class Context(file: File, line: Line, enclosing: Enclosing)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Context

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Context.type
class DefaultLogPrinter(val printPosition: Boolean, val verboseInfo: Boolean) extends LogPrinter

Prints to stdout. Prints the level if it is not Level.Info. Prints non empty tags.

Prints to stdout. Prints the level if it is not Level.Info. Prints non empty tags.

Value parameters

printPosition

add file and line number to log output if true

Attributes

Supertypes
trait LogPrinter
class Object
trait Matchable
class Any
sealed class Level(val value: Int)

Existing log levels, each has a corresponding method in the Logger

Existing log levels, each has a corresponding method in the Logger

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Info
object Trace
object Warn
object Level

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type
Level.type
case class LogLine[T](level: Level, message: String, info: T, loggable: Loggable[T], context: Context)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait LogPrinter

The LogPrinter decides how messages are formatted

The LogPrinter decides how messages are formatted

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Loggable

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Loggable.type
trait Loggable[T]

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class Logger(minLevel: Level, logPrinter: LogPrinter)

Convenience methods for logging at certain levels. Tries to inline log calls so level check happens before method call.

Convenience methods for logging at certain levels. Tries to inline log calls so level check happens before method call.

Value parameters

logPrinter

handles printing and formatting the log messages

minLevel

minimum level that gets printed

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Logger

Logger using Strings as tags

Logger using Strings as tags

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Logger.type