mvx-lib
COMMON
Version history
Unreleased
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0
Installation
Errors
StructuredError
ReasonedError
InvalidFunctionArgumentError
RuntimeExtendedError
RuntimeUnexpectedError
Helpers
get_func_module_and_qualname
api_error_processor
run_with_cancellation_policy
Logger
From the author
Getting started
Starting to use MVX Logger
Logging contexts (LogContext)
Context naming rules
Creating and getting a context
Context configuration
Context usage
Logging pipeline
Logging event (LogEvent)
Event policy
Event metadata
Pattern event policy
Writing an event policy
Configuring event policy
Payload processor
Payload depth
Configuring processor
Error payloads
Default payload processor (LogPayloadProcessor)
Settings
Normalization rules
Object-provided payloads
External object adapters
Custom processor
Sinks
Stream sink
File sink
Custom sinks
Logging infrastructure errors
Architecture
Event model
Context tree
Policy and payload separation
Pattern event policy
Sink delivery
AsyncioLogSink
Package bootstrap
Error boundaries
Thread safety
Log components
log_invocation
Invocation lifecycle
Context resolution
Payload fields
Result logging
Error and cancellation handling
Verbosity
Context formatter
Examples
Public API method
Context fields
Invoke kwargs
Result logging
Error policy
Cancellation
Context formatter
Standalone function
Awaitable result
Verbosity
Architecture
API
Advanced Usage
Direct LogContext usage
Custom payload provider
Custom sink
Asyncio sink backend
Embedding in libraries
Manual LogEvent emission
Custom payload processor
API
Package-level API
LogContext
Events
Event policy
Pattern event policy
Payload processing
Sinks
Ready-to-use sinks
Stream sink
File sink
Sink components
Sink contracts
AsyncioLogSink
Errors
mvx-lib
Logger
Getting started
Edit on GitHub
Getting started
In this section:
Starting to use MVX Logger
Logging contexts (LogContext)
Logging pipeline
Logging event (LogEvent)
Event policy
Payload processor
Sinks
Logging infrastructure errors