stdlog 1.0.0 copy "stdlog: ^1.0.0" to clipboard
stdlog: ^1.0.0 copied to clipboard

A wrapper around the built-in stdio IOSinks using the KISS principle.

example/stdlog_example.dart

import 'package:stdlog/stdlog.dart';

const x = 7;
const y = 12;

void main() {
  // Pretend we are in release mode.
  shouldLogDebug = false;

  debug('Running in debug mode');

  info('Adding $x and $y');

  warn('Crazy math here, be warned!');

  if ((x + y) != 22) {
    error('$x + $y != 22; error!');
  }
}
0
likes
0
pub points
0%
popularity

Publisher

verified publishertytydraco.xyz

A wrapper around the built-in stdio IOSinks using the KISS principle.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on stdlog