redis-log-handler
latest
  • 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
Previous Next

© Copyright 2023, Iglesys347. Revision 1fc2c983.

Built with Sphinx using a theme provided by Read the Docs.