A Logger
can use a Formatter
to format the messages before outputting them.
See DefaultFormatter
.
logger :: Formatter :: defaultinit
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
logger :: Formatter :: defaultinit
core :: Object :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).
# Format messages before outputing them
#
# A `Logger` can use a `Formatter` to format the messages before outputting them.
#
# See `DefaultFormatter`.
interface Formatter
# Format `message` depending of its severity `level`
fun format(level: Int, message: Writable): Writable do return message
end
lib/logger/logger.nit:311,1--320,3