0 purchases
osumlog
osumlog #
The osum library for logging made with ❤️ by osumpi. Simple and clean
to use.
Example Usage #
// All log levels with the `Log` constructor.
for (final level in LogLevels.values) {
Log('This is $level level log message', level: level);
}
// Log.<level>(..) usage.
Log.error("Error");
Log.warn("Warning");
// Put timestamp along with the log message.
Log.showTimestamp = true;
Log.fatal("Fatal with timestamps");
// Use symbols instead of log label flags.
Log.showLevelSymbolInsteadOfLabel = true;
Log.warn("Warning with symbol");
Log.info(Log.loggingLevel.toString().trim());
// Log level set to output all log messages.
Log.loggingLevel = LogLevels.all;
// Ignore colors when logging.
Log.applyColors = false;
Log.trace("Fatal but no colors :(");
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.