redis-log-handler
stable
Handlers
Examples
Pub/Sub log handler example
Stream log handler example
Batched logs example
redis-log-handler
Examples
Edit on GitHub
Examples
Pub/Sub log handler example
Logger setup
Default handler
Define a default Redis pub/sub handler and adding the handler to our logger
Subscribe to the log channel
Emit some logs
Retrieve the logs emited
Custom channel name
Change saved fields
Save logs as pickle format
Stream log handler example
Logger setup
Default handler
Define a default Redis stream handler and adding the handler to our logger
Emit some logs
Retrieve the logs emited
Custom stream name
Set stream maximum length
Change saved fields
Save logs as pickle format
Batched logs example
Logger setup
Handler with batch size
Emit some logs
Retrieve the logs saved
Emit more logs
Retrieve logs saved (for real this time)
Remaining logs
Execution time comparison
Execution time without batching
Execution time with
batch_size=10
Execution time with
batch_size=100
Execution time with
batch_size=1_000
Execution time with
batch_size=10_000
Read the Docs
v: stable
Versions
latest
stable
v1.2.0
v1.1.0
v1.0.1
Downloads
On Read the Docs
Project Home
Builds