semi_logger 1.0.0+3 semi_logger: ^1.0.0+3 copied to clipboard
Color Logger and Base Exception for dart and flutter project.
Features #
Logger with colorful for console.
- log data:
- semi_exception log
Getting started #
Add dependency to your pubspec.yaml:
semi_logger: 'any'
Usage #
Import packages:
import 'package:semi_logger/semi_logger.dart';
Set up:
SemiLogger.setup(
name: 'Semi Logger Test',
debugMode: true,
styleData: SemiLogStyleData(),
);
Print log:
SemiLogger().log(message: 'Hello World', level: SemiLogLevel.info);
or
SemiLogLevel.info.log('Hello World');
You can override log name with SemiLogger.instance()
SemiLogger.instance(name: 'Hello').i('Hello World');
Features and bugs #
Please file feature requests and bugs at the issue tracker.