LoggerConfig

Configuration class for specifying logger settings.

This class allows configuring various aspects of logging behavior such as the tag, message prefix, logging strategy, and whether logging is force-enabled. It also provides a utility method to set the owner of the logger, which automatically sets the message prefix to the simple name of the owner class.

Properties

Link copied to clipboard

A flag indicating whether logging is force-enabled. Defaults to false.

Link copied to clipboard

The logging strategy to be used. Defaults to LoggingStrategy.TIMBER.

Link copied to clipboard

The optional prefix to be added to each logged message. Defaults to null.

Link copied to clipboard
var tag: String?

The tag to be used for logging. Defaults to null.

Functions

Link copied to clipboard
fun setOwner(owner: Any)

Sets the owner of the logger, automatically setting the message prefix to the simple name of the owner class.