lite_logger 0.1.1
lite_logger: ^0.1.1 copied to clipboard
A fast, lightweight, and customizable logging utility for Dart & Flutter — with colored output, emoji icons, log filtering, and powerful formatting.
example/lite_logger_example.dart
import 'package:lite_logger/lite_logger.dart';
void main() {
const LiteLogger(minLevel: LogLevel.debug)
..info('Application started')
..step('Loading configuration...')
..debug(() => 'Debug timestamp: ${DateTime.now().millisecondsSinceEpoch}')
..success('Configuration loaded')
..warning('Low disk space')
..error('Unable to access database');
LiteLogger(
minLevel: LogLevel.debug,
callback: (raw, colored, level) {
// Example
// ignore: avoid_print
print('Raw: $raw');
},
)
..info('Application started')
..step('Loading configuration...')
..debug(() => 'Debug timestamp: ${DateTime.now().millisecondsSinceEpoch}')
..success('Configuration loaded')
..warning('Low disk space')
..error('Unable to access database');
}