layrz_logging 1.6.0
layrz_logging: ^1.6.0 copied to clipboard
Logging system for Flutter applications
Changelog #
1.6.0 #
- Re-added alias
LayrzLoggingtoLogfor backward compatibility.
1.5.1 #
- Removed
uses-material-designfrompubspec.yamlto avoid unnecessary Flutter dependency.
1.5.0 #
Breaking: this release removes public API. Applications on ^1.4.0 will
need changes before upgrading.
- Removed the drift/SQLite persistence layer.
LoggingDb,RecordDataandRecordCompanionare no longer exported — persisting logs is now the application's responsibility. - Removed
Log.logsandLog.retreiveLogs(). Subscribe to the newLog.streamand store entries yourself instead. - Removed the
onLogcallback parameter fromLog.ensureInitialized(). Subscribe toLog.streaminstead. - Removed
PreviewLogDialog. - Added
Log.stream, a broadcastStream<LogEntry>that emits every log entry. Note that broadcast streams do not replay: entries logged before you subscribe are not delivered, so subscribe during startup if you need early logs. - Added optional
errorandstackTracearguments toLog.log()and todebug(),info(),warning(),error()andcritical().LogEntrynow carries both. - The
FlutterErrorandPlatformDispatchererror handlers now pass the error and stack trace structurally instead of concatenating them into the log message. - Dropped the
drift,drift_flutter,path_provider,path,layrz_iconsandlayrz_i18ndependencies. The Flutter SDK is now the only runtime dependency.
1.4.0 #
- Added
onLogcallback toLayrzLoggingclass to allow users to handle logs in their own way, bypassing the default database and in-memory storage.
1.3.0 #
- Added
AnsiColorclass to handle ANSI color codes for console output. - Updated
LogLevelenum to include acolorproperty that returns the corresponding ANSI color code for each log level. - Updated
Logclass to use the newcolorproperty when printing log messages to the console.
1.2.0 #
- Renamed
Logclass toLogEntryto avoid confusion with other packages. - Renamed
LayrzLoggingclass toLogfor simplicity. - Added an alias of
LayrzLoggingtoLogfor backward compatibility. - Added
humanizeMicrosecondson class to convert microseconds to a human readable format. - Constraints updated to support Flutter 3.35.0 and Dart 3.9.0 as minimum versions.
1.1.0 #
- Migrated to use
driftinstead of classic files and lists to store logs.
1.0.14 #
- Added support for non-initalized
LayrzLogginginstance.
1.0.13 #
- Updated README.md with examples
1.0.12 #
- Removed all debugPrint messages of not supported on web platform.
1.0.11 #
- Replaced
dart.library.htmltodart.library.js_interopto fully support Web WASM.
1.0.9 #
- Prevent call of
saveIntoFilewhen is in Web.fl
1.0.8 #
- Added new method to readLogs from the files created, and return a
List<String>. - Changed method
openLogfileto use the same method thatreadLogs. - Added
PreviewLogDialogwidget to show the logs in a dialog. - Changed
openLogfileto validate the permissions before trying to save a file.
1.0.7 #
- Added
openLogfilemethod to open the log file in the default text editor.
1.0.6 #
- Removed
open_filedependency to support WASM compilation.
1.0.5 #
- Lowered flutter version constraint to 3.22.0
1.0.4 #
- Added a conditional based on
kDebugModeto prevent logs on console when is not in debug mode. - Opening the directory instead of two files when
openLogfile()is called.
1.0.3 #
- Fixes related to logfile handling.
1.0.2 #
- Handled latest and previous log files.
1.0.1 #
- Stack trace on FlutterError
1.0.0 #
- Initial release