trackly_logger library
A lightweight, zero-dependency logger for Dart and Flutter.
import 'package:trackly_logger/trackly_logger.dart';
void main() {
trackly.info('App started');
const auth = TracklyLogger('Auth');
auth.success('Signed in', extra: {'userId': 42});
}
Classes
- TracklyConsoleOutput
-
Prints records to the console, one
printcall per line. - TracklyDeveloperOutput
-
Sends records to
dart:developer'slog, which shows them in the Logging tab of Dart & Flutter DevTools, with filtering by level and tag. - TracklyLocation
- A place in the source code, such as the line that logged a record.
- TracklyLogger
- Logs messages at different TracklyLevels.
- TracklyMemoryOutput
- Keeps the most recent records in memory.
- TracklyMultiOutput
- Sends every record to each of outputs, in order.
- TracklyOutput
-
Receives every TracklyRecord that passes
TracklyLogger's filters. - TracklyRecord
-
A single log event, passed to
TracklyLogger.output.
Enums
- TracklyLevel
- The severity of a log record, from least to most severe.
Mixins
- TracklyLoggerMixin
- Gives a class a logger tagged with the class name.
Constants
- trackly → const TracklyLogger
- The global logger, without a tag.