CommandLine
NAME
Log::Async::CommandLine
SYNOPSIS
use Log::Async::CommandLine;
./someprogram [--trace]
[--debug]
[--info | -v]
[--warning] # Default
[--error]
[--fatal]
[--silent | -q]
./someprogram [--logcolor] # Colorize log output
./someprogram [--logthreadid] # Include thread id in log msg
./someprogram [--logfile=/var/log/mylogfile]
DESCRIPTION
A tiny wrapper around Log::Async to set some basic logging configuration stuff from the commandline.
It will log either to $*OUT or the specified logfile messages with a level >= the specified level (or warning by default).
Adding the '--logcolor' option will colorize the log output a little.
Adding '--logthreadid' will include the thread id in the logged message.