Skip to content

kasianov-mikhail/swift_log_bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📝 Swift Log Bridge

Flutter bridge to Apple's swift-log

CI pub package license

trace · debug · info · notice · warning · error · critical


Note

iOS only.

📦 Installation

dependencies:
  swift_log_bridge: ^0.1.0

🚀 Usage

import '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');

⚙️ How It Works

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.

About

Flutter bridge to Apple's swift-log

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors