Last updated:
0 purchases
signale
signale #
signale is a simple log package for dart with pure code, inspire from signale.js.
I want a simple log package, and can support color text,no complicated design.
and can get log data, because I want display log data in my app.
Screenshot #
display on Terminal
you can see from this code
void main() {
Log.defaultLogger.level = LogLevel.info;
Log.d('Debug log');
Log.i('Info log');
Log.w('Warning log');
Log.e('Error log');
Log.v('Verbose log');
Log.c('Color log', 12);
Log.c('Color log', 14);
Log.r('this is random color');
Log.r('this is random color');
Log.r('this is random color');
}
copied to clipboard
display on Flutter Widget with xterm.dart
Get Started #
support function #
Log.w
Log.e
Log.i
Log.v
Log.d
Log.custom
Log.r
copied to clipboard
Set log level #
Log.defaultLogger.level = LogLevel.info;
copied to clipboard
Listen Log Data #
you can listen log stream
Log.defaultLogger.stream.listen((event) {
print(event);
});
copied to clipboard
Replace Default Logger #
implement Printer class
abstract class Printable {
void print(DateTime time, Object object);
}
copied to clipboard
set Printer to Log.defaultLogger.printer
Log.defaultLogger.printer = Printer();
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.