Hey Scott,

I got the following error:

Could not instantiate object of class
[org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver]
Could not create a plugin. Reported error follows.
In ParamAction setting parameter [appendNonMatches] to value [true]
In ParamAction setting parameter [autoReconnect] to value [false]
In ParamAction setting parameter [fileURL] to value
[file://home/mohit/example.log]
....and so on for all other parameters

On Fri, Apr 21, 2017 at 6:42 PM, Scott Deboy <scott.de...@gmail.com> wrote:

> Here you go.
>
> Change the fileURL to apply to your setup, and the name field if you'd
> like and save it as something like chainsaw-log-config.xml.
>
> Open Chainsaw, select File, Load chainsaw configuration menu.
>
> Choose the 'Use a Chainsaw config file' option, and browse to your
> chainsaw-log-config.xml file.  You can also check the 'Always start
> Chainsaw with this configuration' checkbox if you'd like to not go
> through this prompt again.
>
> You can also start Chainsaw with a specific config - just pass the
> path to the config as an arg to Chainsaw's binary.  Something like:
>
> JAVA_OPTS="-Xmx16384M" $HOME/bin/chainsaw
> file:/home/scott/chainsaw-log-config.xml
>
> Reduce -Xmx if your machine has less memory.
>
> Scott
>
>
>
> Config file:
>
> <?xml version="1.0" encoding="UTF-8"?><log4j:configuration
> xmlns:log4j="http://jakarta.apache.org/log4j/"; debug="true">
>     <plugin class="org.apache.log4j.chainsaw.vfs.
> VFSLogFilePatternReceiver"
> name="Example-receiver">
>         <param name="appendNonMatches" value="true"/>
>         <param name="autoReconnect" value="false"/>
>         <param name="fileURL" value="file://home/scott/example.log"/>
>         <param name="logFormat" value="TIMESTAMP [THREAD] LEVEL LOGGER
> - MESSAGE"/>
>         <param name="name" value="Example-receiver"/>
>         <param name="promptForUserInfo" value="false"/>
>         <param name="tailing" value="true"/>
>         <param name="timestampFormat" value="HH:mm:ss.SSS"/>
>         <param name="waitMillis" value="2000"/>
>     </plugin>
> </log4j:configuration>
>
>
>
> On 4/21/17, Mohit Garg <mohi...@vt.edu> wrote:
> > Hey Scott,
> >
> > Chunk of my log file:
> >
> > 17:18:24.897 [main] WARN  org.jgroups.protocols.UDP JGRP000015: the send
> > buffer of socket MulticastSocket was set to 5MB, but the OS only
> allocated
> > 1.05MB. This might lead to performance problems. Please set your max send
> > buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
> > 17:18:24.897 [main] WARN  org.jgroups.protocols.UDP JGRP000015: the send
> > buffer of socket MulticastSocket was set to 5MB, but the OS only
> allocated
> > 1.05MB. This might lead to performance problems. Please set your max send
> > buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
> > 17:18:24.899 [main] WARN  org.jgroups.protocols.UDP JGRP000015: the send
> > buffer of socket MulticastSocket was set to 5MB, but the OS only
> allocated
> > 1.05MB. This might lead to performance problems. Please set your max send
> > buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
> >
> >
> > My Log4J configuration:
> >
> > <?xml version="1.0" encoding="UTF-8" ?>
> > <Configuration advertiser="multicastdns" status="INFO">
> >     <Appenders>
> >         <Console name="STDOUT" target="SYSTEM_OUT">
> >            <PatternLayout pattern="%d{ISO8602} %-5p [%t] %m%n [UTF-8]"/>
> >         </Console>
> >         <File name="File1" filename="/home/user/output.log"
> > bufferedIO="false" advertiseURI="file:///home/user/output.log"
> > advertise="true">
> >             <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level
> > %logger{36} %m%n"/>
> >         </File>
> >     </Appenders>
> >     <Loggers>
> >         <Root level="warn">
> >         <AppenderRef ref="File1"/>
> >     </Root>
> >     <Logger name="org.jgroups" level ="warn">
> >         <AppenderRef ref="File1"/>
> >     </Logger>
> >     </Loggers>
> > </Configuration>
> >
> >
> >
> > On Fri, Apr 21, 2017 at 5:41 PM, Scott Deboy <scott.de...@gmail.com>
> wrote:
> >
> >> Send a chunk of your log file and I'll give you a config that works.
> >>
> >> Scott
> >>
> >> On Apr 21, 2017 2:36 PM, "Mohit Garg" <mohi...@vt.edu> wrote:
> >>
> >> > Hey Scott,
> >> >
> >> > Yes, I am using Chainsaw and logging on the same machine.
> >> >
> >> > My OS is Ubuntu 14.04.
> >> >
> >> > Can you please send me a sample VFSLogFilePatternReceiver config or
> >> > point
> >> > me towards a resource.
> >> >
> >> >
> >> > Thanks,
> >> > Mohit Garg
> >> >
> >> > ​
> >> >
> >>
> >
> >
> >
> > --
> > Thanks and Regards,
> > Mohit Garg
> >
> > Masters|Computer Engineering
> > Virginia Polytechnic Institute
> > and State University
> >
> > <+1-540-449-3550>   <https://www.linkedin.com/in/mogarg>
> > <https://github.com/mogarg>   <http://bit.ly/mogargcv>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
> For additional commands, e-mail: log4j-user-h...@logging.apache.org
>
>


-- 
Thanks and Regards,
Mohit Garg

Masters|Computer Engineering
Virginia Polytechnic Institute
and State University

<+1-540-449-3550>   <https://www.linkedin.com/in/mogarg>
<https://github.com/mogarg>   <http://bit.ly/mogargcv>

Reply via email to