Closed Bug 1595660 Opened 7 years ago Closed 5 years ago

FileAppender class is missing

Categories

(Thunderbird :: Help Documentation, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: tnmanh, Unassigned)

Details

Attachments

(1 file)

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.

Sorry, I can't find the edit button to change issue display

Why would general Mozilla documentation be a Thunderbird issue?

John, can you put something about this into our help documentation.

Flags: needinfo?(john.bieling)

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?

Flags: needinfo?(john.bieling)

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.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: