colored_log 1.0.0
colored_log: ^1.0.0 copied to clipboard
An awesome logging package for dart. Makes debugging and development more interesting
example/colored_log_example.dart
import 'package:colored_log/colored_log.dart';
void main() {
// Red-colored text
// name is optional
ColoredLog.red(
"This is a red log message.",
name: 'Red Log',
);
// Custom background color
ColoredLog.black(
"This log has a green background.",
background: LogColor.green,
);
// Bold yellow text
ColoredLog.yellow(
"This log is bold and yellow.",
style: LogStyle.bold,
);
// Italicized
ColoredLog(
"This log is italicized and underlined.",
style: LogStyle.italicized,
);
// Blinking text
ColoredLog.red(
"This is a blinking log!",
style: LogStyle.blinkSlow,
);
}