Skip to content

API Proposal for Logging #17439

@thomasjpfan

Description

@thomasjpfan

By default writing to a logger would not go to STDOUT without a handler. One solution to this is to attach a handler when verbose is an integer and use the logger if it is passed in.

# Do not log
func(verbose=0)

# will create a stream handler to stdout
func(verbose=1)

# will write to the logger passed in
func(verbose=logger)

Edit: See also #78.

Metadata

Metadata

Assignees

No one assigned

    Labels

    APIHardHard level of difficulty

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions