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.

stdlog #

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

Getting started #

Add the package to your project: dart pub add stdlog.

Usage #

The usage is extremely basic. There are four log levels:

  • Debug: fine-grained internal info
  • Info: regular user-readable info
  • Warning: non-fatal but undesirable info
  • Error: potentially fatal info

Simply import the stdlog package, usually aliasing it, and then call one of the four log level functions. Messages can be a regular Object, or a Function that returns a String.

The typical output contains a timestamp, the log level label, and then the log message:

[2022-08-10T13:22:13.363542Z] E 7 + 12 != 46, it equals 19; error!

0
likes
130
pub points
2%
popularity

Publisher

verified publishertytydraco.xyz

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