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 79378 - Stack traces printed to log file with logger prefix
Summary: Stack traces printed to log file with logger prefix
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2006-06-28 23:55 UTC by Jesse Glick
Modified: 2008-12-22 17:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Example excerpt (746 bytes, text/plain)
2006-06-28 23:56 UTC, Jesse Glick
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2006-06-28 23:55:24 UTC
Recently, I guess since the most recent ErrorManager -> logging conversion, some
of the stack traces appearing in my log file have been prefixed with

  "INFO [stderr]: "

on every line. This is undesirable as it

1. Makes them hard to read.

2. Makes the log file bigger for big stack traces.

3. Prevents hyperlinking by JavaAntLogger.
Comment 1 Jesse Glick 2006-06-28 23:56:04 UTC
Created attachment 31490 [details]
Example excerpt
Comment 2 Jaroslav Tulach 2006-06-29 06:57:20 UTC
This is the format that get's printed when one uses ex.printStackTrace() which 
is discouraged for NetBeans modules. This behaviour is there since previous to 
most recent change in logging, not the most recent one.

Probably simplest fix is to modify TopLogging.NbFormater to skip severity INFO 
and logger name stderr.
Comment 3 Jaroslav Tulach 2006-06-29 15:48:00 UTC
Checking in test/unit/src/org/netbeans/core/startup/TopLoggingTest.java;
/shared/data/ccvs/repository/core/startup/test/unit/src/org/netbeans/core/startup/TopLoggingTest.java,v  
<--  TopLoggingTest.java
new revision: 1.8; previous revision: 1.7
done
Checking in src/org/netbeans/core/startup/TopLogging.java;
/shared/data/ccvs/repository/core/startup/src/org/netbeans/core/startup/TopLogging.java,v  
<--  TopLogging.java
new revision: 1.15; previous revision: 1.14