
MIME::Tools::IndentingLogger - wrap a logger in an indenting mechanism

### Create the logger:
$backend_logger = ...;
$logger = MIME::Tools::IndentingLogger->new($backend_logger);
### Change indentation level:
$logger->level(+1);
### Log messages of various types (indents, then relays to backend):
$logger->debug("about to open config file");
$logger->warning("missing config file: must create");
$logger->error("unable to create config file");

Wrap any logger in an object which will automatically indent the given messages before passing them on.
This is useful in Parsing complex MIME entities: the logged messages can be indented based on how deeply they are nested in the entity.

Class method, constructor. Create a new logger around the given backend LOGGER.
Instance method. Alter/get current parsing level.
Instance methods, concrete overrides. Indent the given messages, then use the backend to log them.