Closed Bug 257810 Opened 22 years ago Closed 22 years ago

RFE Way of dynamically turning on and off pr logging

Categories

(NSPR :: NSPR, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 237326

People

(Reporter: Bienvenu, Assigned: wtc)

References

(Blocks 1 open bug)

Details

An enterprise user mentioned that PR Logging would be even more useful if we could add UI to turn logging on and off. If we had API's to set the logging vars, then we could allow enterprises to add UI with an overlay to turn on and off various forms of logging, and to even e-mail the log to the support desk. This would be very cool - I looked through bugzilla and couldn't find any other bugs like this. I think just adding an API to (re) set the log modules and log file would probably be sufficient. Would you object if I coded up such a function? I know adding functions to NSPR is not something to be taken lightly :-)
I remember timeless filed an RFE for this and submitted a patch.
David, can you confirm that this is a duplicate of bug 237326?
Wan-Teh, bug 237326 could solve the log module part of the problem, and PR_SetLogFile would allow us to set the log file from the UI. I need to echo what timeless said - the code we would add has no knowledge of the individual log modules, so we need to pass in the log module names as strings, not PRLogModuleInfo structs. It sounds like we want to do the same thing...or at least enable others to do the same thing :-) So I'll resolve this as a dup, thx, sorry for the dup. *** This bug has been marked as a duplicate of 237326 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
Blocks: tb-logging
You need to log in before you can comment on or make changes to this bug.