Skip to content

dartloq/loq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loq

CI codecov pub license

Structured logging for Dart. Pipeline architecture, OTel-ready, works everywhere.

Packages

Click a package name for its full README — API reference, configuration examples, and integration recipes.

Package pub.dev Coverage Description
loq pub codecov Core structured logging
loq_shelf pub codecov Shelf / Dart Frog / Jaspr middleware
loq_drift pub codecov Drift query logging interceptor
loq_flutter pub codecov Flutter lifecycle, navigation, and error capture
loq_otel coming soon OpenTelemetry log bridge
loq_crashlytics coming soon Firebase Crashlytics adapter
loq_serverpod coming soon Serverpod integration
loq_sentry coming soon Sentry adapter

Quick example

import 'package:loq/loq.dart';

final log = Logger('payments');
log.info('processed', fields: {'orderId': 'abc-123', 'amount': 99.95});

// Bound loggers carry context
final reqLog = log.withFields({'requestId': 'req-456'});
reqLog.info('charging card');  // includes requestId

// Zone context flows through async code
withLogContext({'traceId': 'xyz'}, () async {
  log.info('inside trace');  // includes traceId automatically
});

Contributing

# Clone and setup
git clone https://github.com/dartloq/loq.git
cd loq
dart pub get
melos bootstrap

# Run checks
melos run analyze
melos run test

License

MIT. See LICENSE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages