Flutter bridge to Apple's swift-log
trace · debug · info · notice · warning · error · critical
Note
iOS only.
dependencies:
swift_log_bridge: ^0.1.0import 'package:swift_log_bridge/swift_log_bridge.dart';
const logger = Logger('MyApp');
await logger.info('User signed in');
await logger.error('Request failed', metadata: {'status': '500'});
await logger.debug('Cache hit');Each Logger instance maps to a Logging.Logger on iOS via method channels. By default, swift-log prints to the console — configure a backend like Scout on the iOS side to persist logs.