jot 1.0.0 copy "jot: ^1.0.0" to clipboard
jot: ^1.0.0 copied to clipboard

Jot is a premium Flutter logging package that provides styled console output, circular memory buffers for recent logs, and easy export functionality for debugging.

example/main.dart

import 'package:jot/jot.dart';

void main() async {
  // Initialize the logger with a custom name
  await Jot.init('MyApp');

  // Simple logging
  Jot.info('Application started');

  // Logging with different levels
  Jot.trace('This is a trace message');
  Jot.debug({
    'status': 'ok',
    'data': [1, 2, 3],
  }); // Pretty prints JSON
  Jot.warn('Low disk space');

  try {
    throw Exception('Simulated network error');
  } catch (e, stack) {
    Jot.error('Failed to fetch data', error: e, stackTrace: stack);
  }

  Jot.success('Process completed successfully');

  // Export logs
  // ignore: avoid_print
  print('\n--- Exported Logs ---\n');
  // ignore: avoid_print
  print(Jot.exportLog);

  // Clean up
  await Jot.dispose();
}
2
likes
160
points
119
downloads

Publisher

unverified uploader

Weekly Downloads

Jot is a premium Flutter logging package that provides styled console output, circular memory buffers for recent logs, and easy export functionality for debugging.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

ansicolor, flutter

More

Packages that depend on jot