This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 20602 - ErrorManager.log(INFORMATIONAL...) does nothing
Summary: ErrorManager.log(INFORMATIONAL...) does nothing
Status: CLOSED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks: 20026
  Show dependency tree
 
Reported: 2002-02-15 16:02 UTC by David Simonek
Modified: 2008-12-22 21:38 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Simonek 2002-02-15 16:02:49 UTC
Call is simply ignored for INFORMATIONAL severity. To reproduce, check usage in
UIModeManager.logStartMode method.
Comment 1 _ ttran 2002-02-16 13:26:38 UTC
Davide, NbErrorManager is another candidate for "refactoring" (total
rewrite, I am serious).  In the beginning of the file there is

    /** Minimum value of severity to write message to the log file*/
    private int minLogSeverity = ErrorManager.INFORMATIONAL; // NOI18N

but later in the same file

    public boolean isLoggable (int severity) {
        // logging severity is more important - by default INFORMATIONAL
        // messages are not logged
        severity = severity >> 1;
        return severity >= minLogSeverity;
    }
Comment 2 David Strupl 2002-02-20 16:24:02 UTC
I am sorry but I don't think that changing the behaviour now is a good
idea. there might be modules that use this severity already and we
could cause a huge amount of log messages from those modules.

Workaround: use different severity for logging.

Note: please note that there may be other impls of ErrorManager so
putting informational can make sense for someone who don't want our
NbErrorManager to do anything but his/her ErrorManager to e.g.
selectively log messages with this severity.
Comment 3 Quality Engineering 2003-07-01 15:46:42 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified.

Comment 4 Quality Engineering 2003-07-01 16:34:09 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.