Skip to main content

Fibertrace


Fibertrace is a Python package that provides a logging utility for capturing and managing log entries in your applications. It offers a simple and customizable way to log messages with different log levels, timestamps, application names, modules, and user information.

ko-fi

Installation

To use Fibertrace, make sure you have Python installed on your system. You can install the package using pip:

pip install fibertrace

Usage

To get started with Fibertrace, you need to create a logger instance by calling the Logger class constructor. The constructor requires the log file path, application name, and a flag indicating whether to use JSON format for log entries.

from fibertrace import Logger

log_file_path = "log.txt"
application = "MyApp"
json_format = False

logger = Logger(log_file_path, application, json_format)

Once you have created the logger, you can use it to log messages with different log levels such as info, error, and debug. For example:

logger.info("This is an information message.")
logger.error("This is an error message.")
logger.debug("This is a debug message.")

The log messages will be written to the specified log file, along with the corresponding log level, timestamp, application name, module, and user information. Additionally, the log messages will be printed to the console.

Conclusion

Fibertrace simplifies logging in Python applications by providing a flexible and configurable logging utility. It helps you capture and manage log entries with ease, allowing you to track the execution flow, debug issues, and monitor your application's behavior. Feel free to explore the package further and adapt it to your specific logging needs. For more information and detailed examples, please refer to the package documentation and source code.

Release files for fibertrace 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fibertrace 0.1.5
File Size Uploaded
fibertrace-0.1.5.tar.gz 3.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fibertrace 0.1.5
File Interpreter ABI Platform
fibertrace-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 7.0 kB

Release files / fibertrace-0.1.5.tar.gz

Download URL fibertrace-0.1.5.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
dc24bba5f63f0d2e60f11e9f059af3a5f321b1a28461a8ec76068b15594a5c5d
BLAKE2b-256 checksum
How to use checksums
6ab2828e4df63b0a0317e84f317d7cf371755c2da3e8481e4d20ecdc9ae673d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release files / fibertrace-0.1.5-py3-none-any.whl

Download URL fibertrace-0.1.5-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55c140efaef2ba17b9355daf66543aed61c4d1d6402f55f241560a423f7f9306
BLAKE2b-256 checksum
How to use checksums
9bbfd5a9168633dda844f4060b48804552886f0c75831276c1de007fb3436ec9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.17

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page