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

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

example/stdlog_example.dart

import 'package:stdlog/stdlog.dart' as std;

const x = 7;
const y = 12;
const result = 46;

void main() {
  std.debug('Running in debug mode!');
  std.info('This program adds $x and $y.');
  std.warn('Crazy math here, be warned!');

  if ((x + y) != result) {
    // We can use functions as well.
    std.error(() {
      const actual = x + y;
      return '$x + $y != $result, it equals $actual; error!';
    });
  }
}
0
likes
150
points
77
downloads

Publisher

verified publishertytydraco.xyz

Weekly Downloads

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (license)

More

Packages that depend on stdlog