Hi David,
For the OSGi Log Service there is no default behaviour for writing out log
messages; you need to register a "LogListener" to listen for and log
messages.
A very simple LogListener might just write messages directly to System.err
or System.out but you could also write to a File without much work. A more
sophisticated LogListener might use Log4J or LogBack to further filter and
pretty print messages.

HTH
-Simon


|------------>
| From:      |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |"David Conde" <dco...@citic.es>                                              
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |"'Equinox development mailing list'" <equinox-dev@eclipse.org>               
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |06/23/2009 05:47 AM                                                          
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |[equinox-dev] Configuring a log file in order to save the logging 
information                                                                     
|
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Sent by:   |
|------------>
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|
  |equinox-dev-boun...@eclipse.org                                              
                                                                     |
  
>--------------------------------------------------------------------------------------------------------------------------------------------------|





Hi,

I wonder if it is possible to save the logging information from Log Service
(OSGI) in a file which is configurable by the developer, instead of showing
the logging information in Console. I have been Reading Log Service Apis
and I did not find any way to change the output for the logging
information. Could I save the logging information in a text file instead of
showing by Console?

Thank you in advance

David_______________________________________________
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev

<<inline: graycol.gif>>

<<inline: ecblank.gif>>

_______________________________________________
equinox-dev mailing list
equinox-dev@eclipse.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Reply via email to