You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Charles Moulliard <cm...@gmail.com> on 2010/08/25 15:56:25 UTC
Example of pattern that we can use to format the log
Hi,
The following karaf command allows to format the output using a pattern
log:display -p
Can someone provide example because when I use this one, I get error :
karaf@root> log:display -p
Error executing command: Missing value for option -p
karaf@root> log:display -p %d{ABSOLUTE} | %-5.5p | %-16.16t | %-32.32c{1} |
%-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
pipe: java.lang.IllegalArgumentException: Command not found: *:%-5.5p
pipe: java.lang.IllegalArgumentException: Command not found: *:%-16.16t
pipe: java.lang.IllegalArgumentException: Command not found:
*:%-32.32corg.apache.felix.gogo.runtime.shell.Closure@c58432
pipe: java.lang.IllegalArgumentException: Command not found: *:%-32.32C
pipe: java.lang.IllegalArgumentException: Command not found:
*:%Xorg.apache.felix.gogo.runtime.shell.Closure@194d431
Error executing command: Command not found: *:%m%n
Regards,
Charles Moulliard
Senior Enterprise Architect (J2EE, .NET, SOA)
Apache Camel - Karaf - ServiceMix Committer
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Blog : http://cmoulliard.blogspot.com | Twitter :
http://twitter.com/cmoulliard
Linkedin : http://www.linkedin.com/in/charlesmoulliard | Skype: cmoulliard
Re: Example of pattern that we can use to format the log
Posted by Charles Moulliard <cm...@gmail.com>.
Thx for the info
On Wed, Aug 25, 2010 at 5:53 PM, Guillaume Nodet <gn...@gmail.com> wrote:
> Try with single quotes, else the pipes are taken as real pipes, not as
> part of the pattern.
>
> On Wed, Aug 25, 2010 at 15:56, Charles Moulliard <cm...@gmail.com>
> wrote:
> > Hi,
> >
> > The following karaf command allows to format the output using a pattern
> >
> > log:display -p
> >
> > Can someone provide example because when I use this one, I get error :
> >
> > karaf@root> log:display -p
> > Error executing command: Missing value for option -p
> > karaf@root> log:display -p %d{ABSOLUTE} | %-5.5p | %-16.16t |
> %-32.32c{1} |
> > %-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} |
> %m%n
> > pipe: java.lang.IllegalArgumentException: Command not found: *:%-5.5p
> > pipe: java.lang.IllegalArgumentException: Command not found: *:%-16.16t
> > pipe: java.lang.IllegalArgumentException: Command not found:
> > *:%-32.32corg.apache.felix.gogo.runtime.shell.Closure@c58432
> > pipe: java.lang.IllegalArgumentException: Command not found: *:%-32.32C
> > pipe: java.lang.IllegalArgumentException: Command not found:
> > *:%Xorg.apache.felix.gogo.runtime.shell.Closure@194d431
> > Error executing command: Command not found: *:%m%n
> >
> > Regards,
> >
> > Charles Moulliard
> >
> > Senior Enterprise Architect (J2EE, .NET, SOA)
> > Apache Camel - Karaf - ServiceMix Committer
> > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > Blog : http://cmoulliard.blogspot.com | Twitter :
> > http://twitter.com/cmoulliard
> > Linkedin : http://www.linkedin.com/in/charlesmoulliard | Skype:
> cmoulliard
> >
>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Blog: http://gnodet.blogspot.com/
> ------------------------
> Open Source SOA
> http://fusesource.com
>
Re: Example of pattern that we can use to format the log
Posted by Guillaume Nodet <gn...@gmail.com>.
Try with single quotes, else the pipes are taken as real pipes, not as
part of the pattern.
On Wed, Aug 25, 2010 at 15:56, Charles Moulliard <cm...@gmail.com> wrote:
> Hi,
>
> The following karaf command allows to format the output using a pattern
>
> log:display -p
>
> Can someone provide example because when I use this one, I get error :
>
> karaf@root> log:display -p
> Error executing command: Missing value for option -p
> karaf@root> log:display -p %d{ABSOLUTE} | %-5.5p | %-16.16t | %-32.32c{1} |
> %-32.32C %4L | %X{bundle.id} - %X{bundle.name} - %X{bundle.version} | %m%n
> pipe: java.lang.IllegalArgumentException: Command not found: *:%-5.5p
> pipe: java.lang.IllegalArgumentException: Command not found: *:%-16.16t
> pipe: java.lang.IllegalArgumentException: Command not found:
> *:%-32.32corg.apache.felix.gogo.runtime.shell.Closure@c58432
> pipe: java.lang.IllegalArgumentException: Command not found: *:%-32.32C
> pipe: java.lang.IllegalArgumentException: Command not found:
> *:%Xorg.apache.felix.gogo.runtime.shell.Closure@194d431
> Error executing command: Command not found: *:%m%n
>
> Regards,
>
> Charles Moulliard
>
> Senior Enterprise Architect (J2EE, .NET, SOA)
> Apache Camel - Karaf - ServiceMix Committer
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Blog : http://cmoulliard.blogspot.com | Twitter :
> http://twitter.com/cmoulliard
> Linkedin : http://www.linkedin.com/in/charlesmoulliard | Skype: cmoulliard
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com