1 unstable release

0.5.0 Jun 21, 2024

#2011 in Development tools

MIT license

17KB
111 lines

Crates.io MIT licensed Build Status

krossbar-log-control

Krossbar log control tool

The tool allows listing connected clients, and change their log level interactively.

Note: Log level for a particular service changes until restarted. Use logger internal mechanism to persistently change log level.

Usage

krossbar-log-control [OPTIONS](https://docs.rs/krossbar-log-control/latest/krossbar_log_control/) <SUBCOMMAND>

OPTIONS:
    -h, --help                     Print help information
    -l, --log-level <LOG_LEVEL>    Self log level: OFF, ERROR, WARN, INFO, DEBUG, TRACE [default:
                                   DEBUG]
    -V, --version                  Print version information

SUBCOMMANDS:
    help             Print this message or the help of the given subcommand(s)
    list             List connected services
    set-log-level    Change service log level

List connected services:

USAGE:
    krossbar-log-control list

OPTIONS:
    -h, --help    Print help information

Change service log level:

USAGE:
    krossbar-log-control set-log-level --service-name <SERVICE_NAME> --level <LEVEL>

OPTIONS:
    -h, --help                           Print help information
    -l, --level <LEVEL>                  Log level: OFF, ERROR, WARN, INFO, DEBUG, TRACE
    -s, --service-name <SERVICE_NAME>    Log files location

Dependencies

~15–29MB
~377K SLoC