ubuntu_logger

Creator: coderz1093

Last updated:

Add to Cart

Description:

ubuntu logger

Ubuntu Logger for Dart #




A logging frontend based on Google's logging
library for Dart.
Usage #
Import the library:
import 'package:ubuntu_logger/ubuntu_logger.dart';
copied to clipboard
Setup logging:
void main() {
Logger.setup(
path: '/path/to/file.log',
level: LogLevel.info,
);
}
copied to clipboard
Log messages:
final log = Logger('a_context');

log.debug('This is a debug message.');
log.info('This is an info message.');
copied to clipboard
Prints to the console:
INFO a_context: This is an info message.
copied to clipboard
Writes to the log file:
YYYY-MM-DD HH:MM:SS.zzzzzz INFO a_context: This is an info message.
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.