Re: Netbeans RCP and logging

"Mark A. Flacy" <[email protected]>
Newsgroups gmane.comp.java.ide.netbeans.user
Message-ID <[email protected]>
Greetings,

https://docs.oracle.com/javase/8/docs/api/java/util/logging/SimpleFormatter.html[1] and 
https://docs.oracle.com/javase/8/docs/technotes/guides/logging/overview.html[2] should 
provide some answers.




-- 
Mark A. Flacy
/[email protected]/

On Thursday, March 13, 2025 5:21:55 AM CDT Bernd Köster wrote:
> Hi Mark,
> 
> right now we use java.util.logging and the messages are written to the
> messages.log. For most entries the timestamp ist missing f.e. this standard
> one:
> 
> INFO [org.netbeans.core.ui.warmup.DiagnosticTask]: Total memory
> 34.176.884.736
> 
> It seems to me, that if the message comes through an framework like log4j
> the timestamp is logged.
> 
> If I look into the NbFormatter class, I can see that the NbFormatter ( [
> https://github.com/apache/netbeans/blob/master/platform/core.startup/src/or
> g/netbeans/core/startup/logging/NbFormatter.java |
> https://github.com/apache/netbeans/blob/master/platform/core.startup/src/or
> g/netbeans/core/startup/logging/NbFormatter.java ] ) produces exactly this
> message, but there does not seem to be an configuration option.
> 
> Thanks for your time,
> 
> Bernd
> 
> 
> Von: "Mark A. Flacy" <[email protected]>
> An: "NetbeansUusers" <[email protected]>
> Gesendet: Donnerstag, 13. März 2025 10:48:16
> Betreff: Re: Netbeans RCP and logging
> 
> 
> 
> Greetings,
> 
> 
> Which logging system do you intend to use? There's more than 1 and they are
> all configurable.
> > Hello,
> > 
> > 
> > 
> > we are investigating the Netbeans RCP Platform for an application
> > 
> > development. We are now searching for the right approach to configure the
> > 
> > logging in Netbeans. Our first change would be to enable the timestamp in
> > 
> > the logging.
> > 
> > 
> > 
> > Is there a configuration file, which can be used to change the logging
> > 
> > behavior?
> > 
> > 
> > 
> > Greetings, Bernd



--------
[1] https://docs.oracle.com/javase/8/docs/api/java/util/logging/SimpleFormatter.html
[2] https://docs.oracle.com/javase/8/docs/technotes/guides/logging/overview.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.