https://github.com/osumpi/osumlog
𝗧𝗵𝗲 𝗼𝘀𝘂𝗺 𝗹𝗶𝗯𝗿𝗮𝗿𝘆 𝗳𝗼𝗿 𝗹𝗼𝗴𝗴𝗶𝗻𝗴 𝗺𝗮𝗱𝗲 𝘄𝗶𝘁𝗵 ❤️ 𝗯𝘆 𝗼𝘀𝘂𝗺𝗽𝗶
https://github.com/osumpi/osumlog
dart flutter library logging logging-library osumpi
Last synced: about 2 months ago
JSON representation
𝗧𝗵𝗲 𝗼𝘀𝘂𝗺 𝗹𝗶𝗯𝗿𝗮𝗿𝘆 𝗳𝗼𝗿 𝗹𝗼𝗴𝗴𝗶𝗻𝗴 𝗺𝗮𝗱𝗲 𝘄𝗶𝘁𝗵 ❤️ 𝗯𝘆 𝗼𝘀𝘂𝗺𝗽𝗶
- Host: GitHub
- URL: https://github.com/osumpi/osumlog
- Owner: osumpi
- License: lgpl-2.1
- Created: 2022-01-01T09:49:15.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-01T15:08:14.000Z (over 4 years ago)
- Last Synced: 2025-03-28T11:45:29.755Z (about 1 year ago)
- Topics: dart, flutter, library, logging, logging-library, osumpi
- Language: Dart
- Homepage:
- Size: 30.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# osumlog
The osum library for logging made with ❤️ by osumpi. Simple and clean
to use.

## Example Usage
```dart
// All log levels with the `Log` constructor.
for (final level in LogLevels.values) {
Log('This is $level level log message', level: level);
}
// Log.(..) 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 :(");
```