console.createInstance should have a way of logging to file, to help with Log.sys.mjs replacement
Categories
(Toolkit :: General, task, P3)
Tracking
()
People
(Reporter: standard8, Unassigned)
References
(Blocks 1 open bug)
Details
One of the features of Log.sys.mjs
is its ability to save logging to a file.
One use case for logging to a file is to be able to save debug logging that will survive across restarts and crashes (e.g. when looking at SessionRestore).
One way to fix this would be to integrate console.createInstance
with MOZ_LOG/about:logging. This is something we'd like to do anyway (bug 881389) but don't have firm plans for exactly what that looks like at the moment. However, this should be done before the Log.sys.mjs
transition.
Comment 1•6 months ago
|
||
Worth considering too that as soon as we start logging to files it follows that we need some to clean up these files - for most consumers of Log.sys.mjs, this is managed by the "log manager" which allows for cleaning up of log files based on their age etc.
Description
•