agents icon indicating copy to clipboard operation
agents copied to clipboard

Setting log-level via parameter or Environment Variable instead of CLI argument

Open dhansmair opened this issue 1 month ago • 0 comments

Feature Type

Nice to have

Feature Description

Hi there,

currently, it seems that the log level of a worker can only be set via CLI argument --log-level. However, it would be convenient to be able to set the log level in other ways, e.g. using a ServerOptions parameter or an environment variable LOG_LEVEL or LIVEKIT_LOG_LEVEL.

Workarounds / Alternatives

I'm currently doing the following:

if __name__ == '__main__':
    sys.argv.append(f"--log-level={LOG_LEVEL}")
    
    cli.run_app(...)

dhansmair avatar Dec 19 '25 19:12 dhansmair