Skip to content

logging should not use global state/variables #429

Closed
@BlackHC

Description

@BlackHC

hierarchicalLoggingEnabled, recordStackTraceAtLevel, _rootLevel (and also the _loggers static field) are all global which makes testing code that uses global loggers difficult.

A solution could be to use expandos that are keyed to a zone environment variable for the 'global' logging state. This would make it easy to decouple tests.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions