Skip to main content

A simple and efficient logging package in python with async support

Project description

FrogLog

FrogLog is an efficient, thread-safe logging library in Python. This nimble logger, designed with simplicity, offers non-blocking, asynchronous logging, making it perfect for applications that prioritize performance.

Features

  • Asynchronous Logging: Dispatch logs to a separate thread, freeing your application from waiting on IO operations.
  • Log Levels: Differentiate the importance of messages with INFO, DEBUG, WARNING, ERROR, and CRITICAL levels.
  • Function Logging: Automatically log function calls, tracking names, arguments, and return values.
  • Stack Tracing: Log the current stack trace, invaluable for debugging and understanding complex code execution paths.

Usage

from froglog import FrogLog

logger = FrogLog(filename="app.log")

# Dispatch logs
logger.info("Info message")
logger.debug("Debug message")
logger.warning("Warning message")
logger.error("Error message")
logger.critical("Critical message")

# Log function calls
@logger.log_function
def test_function(a, b):
    return a + b

test_function(2, 3)

# Log current stack
logger.log_stack()

# Gracefully stop the logger
logger.stop()

Contributing

Thanks for making it this far! Here are some pointers to get you started -

Feature Suggestions

  • Configurable Log Formats: Allow users to customize the format of the log output, such as including the file name and line number, or changing the timestamp format.

  • Remote Logging: Add support for logging to remote systems, such as logging servers or cloud storage.

  • Performance Metrics: Log system performance metrics like memory and CPU usage.

  • Integration with Monitoring Tools: Provide easy integration with popular monitoring and alerting tools.

  • Log Rotation: Implement automatic log rotation to prevent logs from consuming too much disk space.

  • Filtering and Searching: Provide capabilities to filter and search logs based on certain criteria, such as log level, timestamp, or content.

Thank you for your interest in FrogLog. We look forward to your contributions!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

logfrog-1.0.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

logfrog-1.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file logfrog-1.0.0.tar.gz.

File metadata

  • Download URL: logfrog-1.0.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for logfrog-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9f5e09abb27d020bbbeab554c6433c9ee07c3732647a625d6b285701abf1f8b6
MD5 063e50c3722e1f69aaeb77c958e0685c
BLAKE2b-256 154c6aaf0da3411886ed1fe39f51de3a23ab2f7524e3a532591a13c77ba8280b

See more details on using hashes here.

File details

Details for the file logfrog-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: logfrog-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for logfrog-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0a6f9da74b0b08ce3b309da74ded32a4b0af8c20048a03b6a921852dbd3d844
MD5 d02e2d4fcb1a90594cd205e6b647c711
BLAKE2b-256 f2c7c9918406ed8db65ac5fd38fa5878d028ebc04738311cebca2a0699f74956

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page