New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

logging-plugins

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logging-plugins

Handlers, Filters, and other useful plugins for the Python logging system

  • 0.0.2
  • Source
  • PyPI
  • Socket score

Maintainers
1

Handlers, Filters, and other useful plugins for the Python logging system

This package define a set of util classes to plug as Filters, Handlers and Formatters in your logging config.

Filters

  • SkipException: skips logs for given exception classes
  • SkipExceptionMsg: skips logs for given exception classes and matching messages.
  • SkipExceptionMsgRateLimit: same as SkipExceptionMsg but only filters after given rate limit.
  • RateLimiterFilter: rate limit to avoid flooding the handler
  • OnlyExcFilter: only accepts exception errors (with exc_info)
  • LevelRangeFilter: only accepts records whose levels within a range.

Handlers

  • CounterHandler: doesn't emits anything, just counts messages by time and records last timestamp.
  • DumpOnSignalCounterHandler: same as CounterHandler but also registers a signal handler and when received dumps the counts to file. Useful for monitoring a process externally (example liveness tests)
  • StoreRecordsHandler: just stores the log records in a list, useful for tests.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc