这是indexloc提供的服务,不要输入任何密码

df_log 0.3.26 copy "df_log: ^0.3.26" to clipboard
df_log: ^0.3.26 copied to clipboard

A package that provides logging utilities for better debugging.

example/example.dart

import 'package:df_log/df_log.dart';

void main() {
  Log.start('Application starting...');
  Log.info('Checking for user session...');
  Log.alert('Network connection is slow. Retrying in 5s.');
  Log.ok('User session found and validated.');
  Log.err('Failed to load user preferences!');
  Log.stop('Application shutting down.');
  Log.printRed('This is printed in RED!');
  Log.printGreen('This is printed in GREEN!');
  Log.printBlue('This is printed in BLUE!');
  Log.printYellow('This is printed in YELLOW!');
  Log.printCyan('This is printed in CYAN!');
  Log.printPurple('This is printed in PURPLE!');
  Log.printBlack('This is printed in BLACK!');
  Log.printWhite('This is printed in WHITE!');
  Log.printWhite(Log.items.map((e) => e.toJson()));
}
5
likes
150
points
2.24k
downloads

Publisher

verified publisherdev-cetera.com

Weekly Downloads

A package that provides logging utilities for better debugging.

Homepage
Repository (GitHub)
View/report issues

Topics

#console #debugging #logging #print

Documentation

API reference

Funding

Consider supporting this project:

www.buymeacoffee.com
www.patreon.com
github.com

License

MIT (license)

Dependencies

df_safer_dart, meta, path, stack_trace, uuid

More

Packages that depend on df_log