logify 1.0.0 copy "logify: ^1.0.0" to clipboard
logify: ^1.0.0 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');
}