log_tanker library
The log_tanker Library
Overview:
The log_tanker library is a comprehensive logging solution designed for Dart applications. It provides a robust set of tools for managing and outputting log entries, facilitating easy tracking and debugging of code. This library offers a range of functionalities, from basic logging to advanced features like custom log categories and quick logging methods.
Features:
- Log: A class for creating and managing log entries.
- LogCategories: Manages different log categories with associated formatting, including predefined categories like verbose, debug, info, warning, error, and ensure.
- Logger: The core class responsible for the logging logic, offering various levels and methods.
- QuickLog: Provides static methods for quick and convenient logging without needing to instantiate a Logger object.
Example:
import 'package:log_tanker/log_tanker.dart';
void main() {
var logger = Logger(loggerName: 'MyLogger');
logger.i('This is an info log');
logger.e('This is an error log');
}
Classes
- Log
-
The
Log
class for creating and managing log entries. - LogCategories
- Class representing log categories with custom formatting and behaviors.
- Logger
-
Class
Logger
for managing and outputting log entries. - QuickLog
- QuickLog is an abstract final class providing static logging methods. It acts as a wrapper around a Logger instance for quick and easy logging.
Constants
- debugLog → const LogCategories
- ensureLog → const LogCategories
- errorLog → const LogCategories
- infoLog → const LogCategories
- verboseLog → const LogCategories
- warningLog → const LogCategories