logify 1.0.1 copy "logify: ^1.0.1" to clipboard
logify: ^1.0.1 copied to clipboard

Just another library for logging

example/lib/main.dart

// example/main.dart
import 'package:logging/logging.dart';
import 'package:logify/logify.dart';

void main() {
  Logger.root.level = Level.ALL;

  printLogs(DebugLogRecorder());
  printLogs(ConsoleLogRecorder());
}

void printLogs(LogRecorder recorder) {
  Log.clearListeners();
  Log.listen(recorder);

  Log.v('Log.v message');
  Log.d('Log.d message');
  Log.ok('Log.ok message');
  Log.config('Log.config message');
  Log.i('Log.i message');
  Log.w('Log.w message');
  Log.e('Log.e message');
  Log.wtf('Log.wtf message');
}
2
likes
140
points
50
downloads

Publisher

verified publisherpedrox.dev

Weekly Downloads

Just another library for logging

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

logging, meta, stack_trace

More

Packages that depend on logify