FileAppender class is missing
Categories
(Thunderbird :: Help Documentation, defect)
Tracking
(Not tracked)
People
(Reporter: tnmanh, Unassigned)
Details
Attachments
(1 file)
|
867 bytes,
text/plain
|
Details |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0
Steps to reproduce:
I'm updating my add-on
My code has
Components.utils.import('resource://gre/modules/Log.jsm');
...
logger.addAppender(new Log.FileAppender(...))
`
I see the document and it's still listed: https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/Log.jsm
Actual results:
When I log 'Log' there are different between Thunderbird 60 and 68
In 68: we haven't had FileAppender class
In 60: we still have had FileAppender class
In documenation: we still have had FileAppender class
Expected results:
I don't know FileAppender is still developed or not. If it's deprecated, what is the function I can replace.
Comment 2•7 years ago
|
||
Why would general Mozilla documentation be a Thunderbird issue?
John, can you put something about this into our help documentation.
Comment 3•7 years ago
|
||
log.jsm was cut down in bug 1480327. In that bug, Magnus asked for a replacement but that was not answered yet. I can add a hint to the DTN
@ tnmanh : You want to log to a file? Can you give some details, what the old code did and where the log got stored? Would it be sufficient for you, to just log to the error console with console.log("log text") or do you need to have it as a file?
Thanks for your details.
This is old logic. The line right before return is a error Log.FileAppender is not a contructor. I want to keep old logic to log to a file. But if there's no function like FileAppender. I will consider to a normal error console.
Updated•5 years ago
|
Description
•