Ad

logger: Small, extensible logging library

logger enables flexible and configurable logging for Dart applications. It provides features such as log level control, custom printers, and filtering options for improved debugging and monitoring.
Screenshot of simc/logger homepage

logger is a lightweight and adaptable logging library for Dart. It simplifies the process of recording events and messages within applications, offering features like configurable log levels and output formats. The core problem it addresses is the need for a flexible and customizable logging solution that can be easily integrated into various Dart projects. It leverages Dart's features to provide a clean and efficient logging mechanism.

  • Extensible Output: Supports custom LogOutput implementations for flexible log destination options.

  • Customizable Formatting: Allows the creation of tailored LogPrinters for diverse output styles and content.

  • Flexible Filtering: Provides a LogFilter to control which log events are displayed based on various criteria.

  • Log Level Control: Offers adjustment of log levels to selectively display different severity levels of messages.

  • Flutter Extension: Includes a logger_flutter package for convenient console logging in Flutter applications.

  • Log Level Control: Supports logging with different levels (Verbose, Debug, Info, Warning, Error, WTF) for granular control over log messages.

  • Customizable Printers: Enables creating custom LogPrinters to tailor log message formatting and output.

  • Filterable Logs: Allows implementing custom LogFilters to filter log events based on specific criteria.

  • Extensible Output: Supports different LogOutput implementations to direct logs to various destinations such as console, files or other systems.

  • Flutter Integration: Provides a dedicated package for easy integration with Flutter applications, enabling shake-to-show console functionality.

  • Configuration Options: Offers extensive configuration options when creating a Logger instance.

  • Auto Detection: Automatically detects terminal line length and color support when using the io package.

The logger project is currently archived and no longer actively maintained. While it provides a solid foundation for logging in Dart applications with a history of usage, it's recommended to migrate to the active maintenance branch hosted at https://github.com/SourceHorizon/logger for ongoing support and updates. The codebase is well-documented, and the modular design promotes extensibility.

logger benefits developers by providing a flexible and customizable logging solution for Dart applications. It simplifies debugging, monitoring, and troubleshooting by enabling fine-grained control over log messages and output. Its extensibility allows developers to adapt the logging behavior to specific project requirements, making it a valuable tool for any Dart-based project.

Languages:
Summarize:
Share:
Stars
1,071
Forks
125
Issues
56
Created
7 years ago
Commit
2 years ago
License
MIT
Archived
No
Updated 8 hours ago

Similar Repositories