Petals ESB CLI

logger-set doesn't work

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Resolution: Won't Fix
  • Affects Version/s: 2.2.0
  • Fix Version/s: None
  • Component/s: Command 'logger-set'
  • Security Level: Public
  • Description:

    Apparently, logger-set does not work, and when looking at the source code I couldn't find the corresponding code...

  • Environment:
    -

Activity

Hide
Christophe DENEUX added a comment - Tue, 3 Nov 2015 - 10:34:35 +0100 - edited

Strange, that works fine for me. Can you add more details about you are doing ?

The source code is: org.ow2.petals.cli.shell.command.LoggerSet in project petals-cli

Show
Christophe DENEUX added a comment - Tue, 3 Nov 2015 - 10:34:35 +0100 - edited Strange, that works fine for me. Can you add more details about you are doing ? The source code is: org.ow2.petals.cli.shell.command.LoggerSet in project petals-cli
Hide
Victor NOËL added a comment - Tue, 3 Nov 2015 - 10:39:39 +0100

Actually, I tried once, it didn't work at all.

When I say that there is no corresponding code, I mean at the JMX level, on the server side, if you look at org.ow2.petals.microkernel.system.logging.LoggingServiceMBean, there is nowhere any declaration or implementation of this functionality.

I tried to grep the code and stuffs like that and found nothing related…

But I may be completely wrong and it actually works…

Show
Victor NOËL added a comment - Tue, 3 Nov 2015 - 10:39:39 +0100 Actually, I tried once, it didn't work at all. When I say that there is no corresponding code, I mean at the JMX level, on the server side, if you look at org.ow2.petals.microkernel.system.logging.LoggingServiceMBean, there is nowhere any declaration or implementation of this functionality. I tried to grep the code and stuffs like that and found nothing related… But I may be completely wrong and it actually works…
Hide
Victor NOËL added a comment - Tue, 3 Nov 2015 - 10:55:05 +0100

Sorry, missing the main point: when I execute the command (for example changing Petals.Transporter to FINEST), it says nothing, but after that, I don't see the logs I am expecting to see in the log files…

Show
Victor NOËL added a comment - Tue, 3 Nov 2015 - 10:55:05 +0100 Sorry, missing the main point: when I execute the command (for example changing Petals.Transporter to FINEST), it says nothing, but after that, I don't see the logs I am expecting to see in the log files…
Hide
Christophe DENEUX added a comment - Tue, 3 Nov 2015 - 11:05:56 +0100 - edited

On the container side, the MBean LoggingServiceMBeanImpl is reponsible of the JMX operations about loggers.

Caution:

  • To set a log level, the default JUL MBean of the JVM is used, not a MBean provided by Petals itself
  • LoggingServiceMBeanImpl on the container side is used only to retrieve the list of loggers.
Show
Christophe DENEUX added a comment - Tue, 3 Nov 2015 - 11:05:56 +0100 - edited On the container side, the MBean LoggingServiceMBeanImpl is reponsible of the JMX operations about loggers. Caution:
  • To set a log level, the default JUL MBean of the JVM is used, not a MBean provided by Petals itself
  • LoggingServiceMBeanImpl on the container side is used only to retrieve the list of loggers.
Hide
Victor NOËL added a comment - Tue, 3 Nov 2015 - 11:14:12 +0100

It's working actually.

Show
Victor NOËL added a comment - Tue, 3 Nov 2015 - 11:14:12 +0100 It's working actually.

People

Dates

  • Created:
    Tue, 3 Nov 2015 - 09:11:32 +0100
    Updated:
    Tue, 3 Nov 2015 - 11:14:12 +0100
    Resolved:
    Tue, 3 Nov 2015 - 11:14:12 +0100