jetleaf_logging 1.0.0
jetleaf_logging: ^1.0.0 copied to clipboard
A library that provides a pluggable, highly customizable logging solution for applications that require clarity, consistency, and control over how logs are captured, formatted, and displayed.
JetLeaf Logging #
A powerful, extensible logging library for Dart applications that provides flexible logging capabilities with support for ANSI colors, custom formatting, and multiple output formats.
Features #
- π¨ ANSI Color Support: Beautiful, color-coded output for better log readability
- π¨οΈ Multiple Printer Types: Choose from various log printers (simple, pretty, flat, structured, etc.)
- π Log Levels: Built-in support for different log levels (debug, info, warning, error, etc.)
- π§© Extensible: Easily create custom log printers and formatters
- ποΈ Structured Logging: Support for structured logging with metadata
- π Stack Trace Parsing: Built-in stack trace parsing for better debugging
- β‘ High Performance: Optimized for performance in production environments
Installation #
Add this to your package's pubspec.yaml
file:
dependencies:
jetleaf_logging: ^1.0.0
Quick Start #
import 'package:jetleaf_logging/jetleaf_logging.dart';
void main() {
// Create a logger
final logger = Logger();
// Log messages at different levels
logger.d('Debug message');
logger.i('Info message');
logger.w('Warning message');
logger.e('Error message', error: 'Something went wrong');
// Log with custom printer
final prettyPrinter = PrettyPrinter(
colors: true,
printEmojis: true,
);
logger.d('This will be pretty printed', printer: prettyPrinter);
}
Documentation #
For detailed documentation, see the docs directory.
Contributing #
Contributions are welcome! Please read our contributing guidelines before submitting pull requests.
License #
This project is licensed under the MIT License - see the LICENSE file for details.
Developed with β€οΈ by the JetLeaf Team