lite_logger 0.3.2
lite_logger: ^0.3.2 copied to clipboard
A fast, lightweight, and customizable logging utility for Dart & Flutter — with colored output, emoji icons, log filtering, and powerful formatting.
0.3.2 #
print()output is now plain text: ANSI color escapes and the trailing reset code are stripped (they were mangled to^[[36mbylogcaton Flutter mobile), whiledeveloper.log()and thecallbackstill receive the fully colored message.- Log lines are now built lazily — only the variant actually emitted
(
coloredvsplain) is formatted.
0.3.1 #
- Add
LogOutputenum (auto/print/developerLog) via the newoutputparameter to control the output method.LogOutput.auto(default) prefersdeveloper.log()in debug builds so ANSI colors survive (fixes^[[36moutput whenprint()is forwarded throughlogcaton Flutter mobile), whileprint()is used in release/product builds wheredeveloper.log()is not surfaced. Passoutput: LogOutput.printexplicitly for plaindart runterminals without a debugger. - Deprecate the
usePrintboolean in favor ofoutput. This is non-breaking: an explicitly passedusePrintstill works and takes precedence overoutput, so existing code keeps compiling and behaving as before. Optional migration:usePrint: true→output: LogOutput.print,usePrint: false→output: LogOutput.developerLog, omit both for the new automatic default (LogOutput.auto). - Fix named loggers emitting the ANSI color escape twice
(
<color>[Name] <color>...→<color>[Name] ...). - Remove the
'\r'carriage-return hack for thedeveloper.log()name of unnamed loggers (it could garble terminal lines); the name is now passed through as-is.
0.3.0 #
usePrintis nowtrueby default so log output usesprint()unless explicitly disabled.
0.2.0 #
usePrintwas changed to false by default.
0.1.2 #
- Add
nameparameter to identify loggers in output. - Improve output formatting to include logger name prefix when provided.
- Enhanced documentation with examples and usage patterns.
0.1.1 #
- Add
usePrintto toggle print vs developer log output.
0.1.0 #
- TYPO: levelText -> levelTexts
0.0.1 #
- Initial version.