poelstra / mhub

Simple, flexible message hub using websockets
MIT License
9 stars 7 forks source link

add silent option #11

Closed Jheronymus closed 7 years ago

Jheronymus commented 7 years ago

Currently the verbose option disables all the logging, including the more relevant information at start up (ie port, config file etc) I'd suggest to rename the verbose option to silent and use the verbose flag to only disable individual message logging.

poelstra commented 7 years ago

You can now specify a log level in the config file, e.g.:

{
    "logging": "debug" // or: none, fatal, error, warning, info (default)
}

and override it on the commandline using the -l (or --loglevel) option.

Released in 0.6.0.