Logger

version.cli.core.logging.Logger
See theLogger companion trait
object Logger

Attributes

Companion
trait
Source
Logger.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Logger.type

Members list

Givens

Givens

Attributes

Source
Logger.scala

Extensions

Extensions

extension (logger: Logger)
inline def error(inline message: String, inline context: String): Unit

Log an error message. Always emitted regardless of verbose setting.

Log an error message. Always emitted regardless of verbose setting.

Attributes

Source
Logger.scala
inline def error(inline message: String): Unit

Zero-cost logging macros that eliminate overhead when logging is disabled.

Zero-cost logging macros that eliminate overhead when logging is disabled.

These inline methods use compile-time evaluation to completely remove logging calls when the level is not enabled, achieving true zero-cost abstraction.

Attributes

Source
Logger.scala
def verbose(message: String, context: String)(using isVerbose: Boolean): Unit

Log a verbose/debug message. Only emitted when verbose mode is enabled.

Log a verbose/debug message. Only emitted when verbose mode is enabled.

The message expression is only evaluated if verbose logging is enabled, providing zero-cost abstraction for expensive debug computations.

Attributes

Source
Logger.scala
def verbose(message: String)(using isVerbose: Boolean): Unit

Zero-cost logging macros that eliminate overhead when logging is disabled.

Zero-cost logging macros that eliminate overhead when logging is disabled.

These inline methods use compile-time evaluation to completely remove logging calls when the level is not enabled, achieving true zero-cost abstraction.

Attributes

Source
Logger.scala
def verboseLazy[T](computation: => T, messageTemplate: T => String, context: String)(using isVerbose: Boolean): Unit

Log a verbose message with lazy evaluation of an expensive computation.

Log a verbose message with lazy evaluation of an expensive computation.

The computation is only performed if verbose logging is enabled.

Attributes

Source
Logger.scala
def verboseLazy[T](computation: => T, messageTemplate: T => String)(using isVerbose: Boolean): Unit

Zero-cost logging macros that eliminate overhead when logging is disabled.

Zero-cost logging macros that eliminate overhead when logging is disabled.

These inline methods use compile-time evaluation to completely remove logging calls when the level is not enabled, achieving true zero-cost abstraction.

Attributes

Source
Logger.scala