Skip to content

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

@dhansmair

Description

@dhansmair

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(...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions