casual_log_manager 0.2.2 copy "casual_log_manager: ^0.2.2" to clipboard
casual_log_manager: ^0.2.2 copied to clipboard

A simple dart package for application error and log management.

casual_log_manager #

Flutter CI

A lightweight and flexible logging utility for Dart and Flutter projects.

casual_log_manager helps you manage, filter, and output logs efficiently during development and production. It provides convenient wrappers and implementations on top of the popular logging package.

Features #

  • Simple API for logging at different levels (info, warning, error, etc.)
  • Customizable log formatters and outputs
  • Log filtering by level or tag
  • Integration with Dart and Flutter
  • Easily extendable for custom log sinks
  • Prints logs to console
  • Writes logs to files
  • Sends logs to remote servers or services

Usage #

Import and use the logger in your Dart or Flutter project:

import 'package:casual_log_manager/casual_log_manager.dart';

void main() {
  LogManager().init(
    onAppStart: () {
      // This is where you would initialize your app or perform any startup tasks.
      runApp(const MyApp());
      // This is an example log.
      LogManager.log(
        'This is an example log statement.',
        logLevel: LogLevel.INFO,
        label: 'example',
      );
    },
    label: 'log label example app',
    options: Options(
      preventCrashes: true,
      logToFile: true,
      logToNetwork: true,
      prettyPrint: true,
      logToConsole: true, //
    ),
    networkOptions: const NetworkOptions(networkUrl: 'https://example.com/logs/'),
  );
}

Contributing #

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

License #

© 2025 The Casual Dev - Ronald Erosa. Released under the MIT License.

1
likes
160
points
242
downloads

Publisher

unverified uploader

Weekly Downloads

A simple dart package for application error and log management.

Repository (GitHub)
View/report issues
Contributing

Topics

#debugging #logging

Documentation

API reference

License

MIT (license)

Dependencies

dio, flutter, logging, neat_periodic_task, path_provider, stack_trace

More

Packages that depend on casual_log_manager