color_logging

Creator: coderz1093

Last updated:

0 purchases

color_logging Image
color_logging Images

Languages

Categories

Add to Cart

Description:

color logging

Color logger #
Do not use stackTracking if use confuse app build #
flutter pub add logging
flutter pub add color_logger
copied to clipboard
Show all color
AnsiColor.showColor()
copied to clipboard
Default color

more

final Map<Level, AnsiColor> defaultLevelColors = {
Level.ALL: AnsiColor.fg(8),
Level.FINEST: AnsiColor.fg(244),
Level.FINER: AnsiColor.fg(7),
Level.FINE: AnsiColor.fg(75),
Level.INFO: AnsiColor.fg(2),
Level.WARNING: AnsiColor.fg(214),
Level.SEVERE: AnsiColor.fg(196),
};
copied to clipboard
Setup

more
Do not use stackTracking if use confuse build

// extension
// Do not use stackTracking if use confuse build
Logger.root.level = Level.ALL;
Logger.root.listenOnColorLogger(
stackTracking: true,
kIsWeb: true,
methodCounts: {
Level.SEVERE: 8,
Level.FINE: 2,
},
levelColors: {
Level.WARNING: AnsiColor.fg(214),
},
);

/// default is true
Logger.root.listenOnColorLogger();
or
Logger.root.listenOnColorLogger(false);


@override
Widget build(BuildContext context) {
logger.finest("finest");
logger.finer("finer");
logger.fine("fine");
logger.info("info");
logger.warning("warning");
logger.severe("severe\n\nsevere\nsevere");
logger.logPrettyMap(
prefix: 'test',
arguments: {
"glossary": {
"title": "example glossary",
"GlossDiv": {
"title": "S",
"GlossList": {
"GlossEntry": {
"ID": "SGML",
"SortAs": "SGML",
"GlossTerm": "Standard Generalized Markup Language",
"Acronym": "SGML",
"Abbrev": "ISO 8879:1986",
"GlossDef": {
"para":
"A meta-markup language, used to create markup languages such as DocBook.",
"GlossSeeAlso": ["GML", "XML"]
},
"GlossSee": "markup"
}
}
}
}
},
);
}


copied to clipboard
Work with vscode extension for help


Vscode extension flutter logger easy life


without extension




with extension you can tap absolute path to code line

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.