-
Notifications
You must be signed in to change notification settings - Fork 0
Log
Log contains an extended console logger with colours and varying log levels.
The various levels that the logger can log at. Logs will be coloured and include an icon based on the level.
| Value | Colour | Icon |
|---|---|---|
info |
Blue | Icons.lightbulb |
warning |
Yellow | Icons.warning |
error |
Red | Icons.error |
debug |
Green | Icons.bug_report |
nothing |
N/A | N/A |
Setting the logger to Level.nothing will disable logs. |
Brings up a page in app that shows the console output.
Creates a new Log with name. level sets the initial log level of the Log, and setting colors to false disables colours. level defaults to Level.info and colors defaults to true.
Logs message to the console, at the currently set Level. Optional errors and stacktraces can be included with error and stackTrace
Same as log, but you can set the Level through level.
Calls logAt at Level.info.
Calls logAt at Level.warning.
Calls logAt at Level.error.
Calls logAt at Level.debug.
If log is set to true, logs will still show up even when the app is not in debug mode.
Sets the amount of logs that will be shown in the in-app console. Defaults to 100, cannot be less than 0.
Sets the icon size of the icons shown in the in-app console. Defaults to 24.0, cannot be less than 0.
Setting this to false will stop colours from showing up the console. Colours are handled through escape codes so disable colours if your console does not support it.
Sets the default Level used when log is called. Setting this to Level.nothing will disable logs.
Models - Currently Empty