lite_logger 0.1.1 copy "lite_logger: ^0.1.1" to clipboard
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');
}
1
likes
0
points
151
downloads

Publisher

unverified uploader

Weekly Downloads

A fast, lightweight, and customizable logging utility for Dart & Flutter — with colored output, emoji icons, log filtering, and powerful formatting.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on lite_logger