On 20.12.10 14:21, "Pierre Henry Perret" <[email protected]> wrote:
>Thanks Clement,
>
>If I use log command in my felix shell , I effectively got the
>'ServiceEvent' and 'BundleEvent' but not my logs in
>my bundle: no logs:
>____________________
>@Requires
>LogService felixLogImpl; // This is the only impl I have in my shell
>....
>public void start(BundleContext ctxt){
>...
> log.log(LogService.LOG_DEBUG, "my bundle is starting...!" );
>...
>}
>_________________________
>
>This logs nothing: when I do a 'log' command in shell no log DEBUG appears
>!?
First, I don't know which level is displayed by the log command (info
maybe).
Then, do you have an instance of your component:
@Component
@Instantiate
Public class MyClass {
}
Regards,
Clement
>
>
>Pierre
>
>
>
>2010/12/20 Clement Escoffier <[email protected]>
>
>> Hi,
>>
>> On 20.12.10 12:50, "Pierre Henry Perret" <[email protected]> wrote:
>>
>> >Hello,
>> >
>> >I have this code to inject an instance of LogService in a bundle:
>> >_______________________________
>> > @Requires
>> > private LogReaderService lrs;
>> > @Requires
>> > private LogService log;
>> >________________________________
>> >
>> >But when I use log service - write and read in it - after adding a
>> >LogListeneer, I get nothing on felix console .
>>
>> The LogService Implementation from Felix does not print the log message
>>on
>> the console.
>> If you're using Gogo (provided in the latest Felix distribution), you
>>have
>> the 'log' command
>> Giving the last logged entries.
>>
>> Regards,
>>
>> Clement
>>
>>
>> >
>> >Have I missed something ?
>> >
>> >
>> >Pierre
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]