logging

de.rmgk.logging$
object logging

Attributes

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

Members list

Concise view

Type members

Classlikes

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

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object Context

Attributes

Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Context.type
class DefaultLogPrinter[T](val tracing: Boolean) extends LogPrinter[T]

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.

Attributes

T

type of the tag used by the logger

tracing

add file and line number to log output if true

Graph
Supertypes
trait LogPrinter[T]
class Object
trait Matchable
class Any
sealed class Level(val value: Int, val prefix: String)

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
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Debug.type
object Error.type
object Info.type
object Silent.type
object Trace.type
object Warn.type
object Level

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Level.type
trait LogPrinter[T]

The LogPrinter decides how messages are formatted

The LogPrinter decides how messages are formatted

Attributes

T

type of the tag used by the logger

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Logger

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Logger.type
case class LoggerT[T](tag: T, level: Level, logPrinter: LogPrinter[T])

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.

Attributes

T

tag type passed to the log printer

level

minimum level that gets printed

logPrinter

handles printing and formatting the log messages

tag

tag to log with, used by the printer

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Types

type Logger = LoggerT[String]

Logger using Strings as tags

Logger using Strings as tags

Attributes