Categorygithub.com/pion/logging
modulepackage
0.2.3
Repository: https://github.com/pion/logging.git
Documentation: pkg.go.dev

# README


Pion Logging

The Pion logging library

Pion transport Slack Widget
GitHub Workflow Status Go Reference Coverage Status Go Report Card License: MIT


Roadmap

The library is used as a part of our WebRTC implementation. Please refer to that roadmap to track our major milestones.

Community

Pion has an active community on the Slack.

Follow the Pion Twitter for project updates and important WebRTC news.

We are always looking to support your projects. Please reach out if you have something to build! If you need commercial support or don't want to use public methods you can contact us at [email protected]

Contributing

Check out the contributing wiki to join the group of amazing people making this project possible

License

MIT License - see LICENSE for full text

# Functions

NewDefaultLeveledLoggerForScope returns a configured LeveledLogger.
NewDefaultLoggerFactory creates a new DefaultLoggerFactory.

# Constants

LogLevelDebug is for logging low-level library information (e.g.
LogLevelDisabled completely disables logging of any events.
LogLevelError is for fatal errors which should be handled by user code, but are logged to ensure that they are seen.
LogLevelInfo is for logging normal library operation (e.g.
LogLevelTrace is for logging very low-level library information (e.g.
LogLevelWarn is for logging abnormal, but non-fatal library operation.

# Structs

DefaultLeveledLogger encapsulates functionality for providing logging at.
DefaultLoggerFactory define levels by scopes and creates new DefaultLeveledLogger.

# Interfaces

LeveledLogger is the basic pion Logger interface.
LoggerFactory is the basic pion LoggerFactory interface.

# Type aliases

LogLevel represents the level at which the logger will emit log messages.