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

Flutter companion for flog terminal log viewer. Structured logging + Network Inspector (HTTP/SSE/WS).

flog_logger #

Lightweight structured logger for Flutter. Outputs [LEVEL][Tag] message format that flog parses natively.

Usage #

import 'package:flog_logger/flog_logger.dart';

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

log.i('-> GET /api/users');
log.d('Response: 200 OK (128ms)');
log.w('Retry #2 after timeout');
log.e('Connection refused', error: e, stackTrace: st);

Full-word methods also available:

log.info('-> GET /api/users');
log.debug('Response: 200 OK');
log.warning('Retry #2');
log.error('Connection refused', error: e);

Output #

[INFO][Network] -> GET /api/users
[DEBUG][Network] Response: 200 OK (128ms)
[WARNING][Network] Retry #2 after timeout
[ERROR][Network] Connection refused

With flog #

Start flog in a separate terminal — it auto-discovers your Flutter app and displays these logs with level coloring, tag filtering, search, bookmarks, and more.

# Install flog
curl -fsSL https://raw.githubusercontent.com/shaomingqing/flog/master/install.sh | bash

# Run it
flog

License #

MIT

0
likes
140
points
66
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter companion for flog terminal log viewer. Structured logging + Network Inspector (HTTP/SSE/WS).

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

dio, web_socket_channel

More

Packages that depend on flog_dart