flutter_logger_native 0.1.1
flutter_logger_native: ^0.1.1 copied to clipboard

A fluttter logger to iOS and Android native via ffi.

flutter_logger_native #

A fluttter logger to native via ffi.

Usage #

import 'package:flutter_logger_native/flutter_logger_native.dart';

// Log() is Singleton (factory)
// set log level
Log().currentLevel = YDLogLevel.All;

// Printed without called location
Log().v('Hello verbose!');
// 2021-05-25 19:05:07.219937 Verbose-> package:flutter_logger_native_example/main.dart_34, Hello verbose!

// Printed function which returns object
Log().i('Hello info!');
// 2021-05-25 19:05:07.219937 Info-> package:flutter_logger_native_example/main.dart_34, Hello info!

// set log level again
Log().currentLevel = YDLogLevel.Info;

// Not printed
Log().d('Hello debug!');

// Printed
Log().e('Hello error!');
// 2021-05-25 19:05:07.219937 Error-> package:flutter_logger_native_example/main.dart_34, Hello error!

// Printed
Log().w('Hello shout!');
// 2021-05-25 19:05:07.219937 Warning-> package:flutter_logger_native_example/main.dart_34, Hello shout!


1
likes
90
pub points
31%
popularity

A fluttter logger to iOS and Android native via ffi.

Repository (missing)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

ffi, flutter, stack_trace

More

Packages that depend on flutter_logger_native