flog_dart 0.11.0 copy "flog_dart: ^0.11.0" to clipboard
flog_dart: ^0.11.0 copied to clipboard

Flutter companion for flog terminal log viewer. Structured logging, idempotent Dio instrumentation, Network Inspector, and mocks.

example/example.dart

import 'package:flog_dart/flog_dart.dart';

// One logger per module — tag is fixed at creation.
final log = FlogLogger('Network');

void main() {
  // Single-letter shorthand (like the `logger` package)
  log.i('-> GET /api/users');
  log.d('Response: 200 OK (128ms)');
  log.w('Retry #2 after timeout');
  log.e('Connection refused', error: 'SocketException');

  // Full-word methods work too (like talker / loggy)
  final auth = FlogLogger('Auth');
  auth.info('Login succeeded');
  auth.warning('Token expires in 5 min');
  auth.error('Refresh failed', error: 'Unauthorized');
}
0
likes
140
points
153
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter companion for flog terminal log viewer. Structured logging, idempotent Dio instrumentation, Network Inspector, and mocks.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

dio, flutter, meta, package_info_plus, web_socket_channel

More

Packages that depend on flog_dart