get

fun get(tag: String): Logger(source)

Returns a Logger identified by tag.

Instances are cached; calling get multiple times with the same tag returns the same Logger object until install is called again. In concurrent scenarios, two threads may briefly create separate instances for the same tag - both are equivalent and the overhead is a single extra allocation.

Return

A Logger bound to tag.

Parameters

tag

The tag (name) for the logger, typically a class or module name.