struct Crylog::Registry
- Crylog::Registry
- Struct
- Value
- Object
Overview
Stores the loggers registered with Crylog
.
Defined in:
registry.crConstructors
Class Method Summary
-
.clear : Hash(String, Crylog::Logger)
Clears the registry.
-
.close
Closes all handlers on each logger.
-
.loggers : Hash(String, Crylog::Logger)
Hash of registered loggers.
-
.register(channel : String, &block : Crylog::Logger -> Crylog::Logger)
Yields a new
Crylog::Logger
with channel yields to &block.
Constructor Detail
Class Method Detail
Yields a new Crylog::Logger
with channel yields to &block. Then registers the resulting Crylog::Logger
.