sprint

Creator: coderz1093

Last updated:

0 purchases

sprint Image
sprint Images

Languages

Categories

Add to Cart

Description:

sprint

The simplest way to print messages in your Dart project #
Usage #
If you like your code verbose, you may use long function names:
final log = Sprint('Module');

log.debug('Debug message');
log.success('Success message');
log.info('Info message');
log.warn('Warning message');
log.severe('Severe message');
log.fatal('Fatal message');
copied to clipboard
If you prefer to be brief in your writing, use short function names instead:
final log = Sprint('Module');

log.d('Debug message');
log.s('Success message');
log.i('Info message');
log.w('Warning message');
log.sv('Severe message');
log.f('Fatal message');
copied to clipboard
It is also possible to call the instance itself as follows:
final log = Sprint('Module');

log('Info message');
copied to clipboard
To include timestamps in logs, set includeTimestamp to true:
final log = Sprint('Module', includeTimestamp: true);

log('This message will not be posted.');
copied to clipboard
The display of messages can be controlled using the quietMode field. If set to
true, no messages will be printed.
log.quietMode = true;
log('This message will not be posted.');

log.quietMode = false;
log('However, this one *will* be.');
copied to clipboard

License

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

Files In This Product:

Customer Reviews

There are no reviews.