You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Mark F <mf...@knology.net> on 2006/02/02 17:04:05 UTC

Tomcat -- All Logs to Syslog

Version: 5.0.30
Log4j:   1.3


I'm attempting to use log4j for all of tomcat logs.  I would like for 
all logging to be output to the syslog daemon running on localhost.

I've configured a log4j.properties file and placed it in 
$CATALINA_HOME/common/classes:

log4j.rootLogger=INFO, A1
log4j.appender.A1=org.apache.log4j.net.SyslogAppender
log4j.appender.A1.SyslogHost=127.0.0.1
log4j.appender.A1.facility=LOCAL7
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r %-5p %c{2} %M.%L %x - %m\n

I've configured the server to start with jsvc as the user "tomcat".

/etc/init.d/tomcat:
...
JAVA_HOME=$JAVA_HOME
CATALINA_HOME=/usr/share/tomcat
DM_HOME=/opt/documentum
DFC_CONFIG=$DM_HOME/shared/config/
DFC_HOME=$DM_HOME/shared/dfc
DAEMON_HOME=$CATALINA_HOME/bin
TOMCAT_USER=tomcat
TOMCAT_LOG_DIR=/var/log/tomcat
LOG4J_CONFIG=log4j.properties
TMP_DIR=$CATALINA_HOME/temp
...
start() {
     #
     # Start Tomcat
     #
     chown -R $TOMCAT_USER:$TOMCAT_USER /usr/share/tomcat/*
     $DAEMON_HOME/jsvc \
     -user $TOMCAT_USER \
     -home $JAVA_HOME \
     -Dlog4j.debug \
     -Dcatalina.home=$CATALINA_HOME \
     -Djava.io.tmpdir=$TMP_DIR \
     -Dlog4j.configuration=$LOG4J_CONFIG \
 
-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger 
\
     $CATALINA_OPTS \
     -cp $CLASSPATH org.apache.catalina.startup.Bootstrap
     RETVAL=$?
     echo
     [ $RETVAL = 0 ] && touch /var/lock/subsys/tomcat
     PID=`cat /var/run/jsvc.pid`
     echo "Starting Tomcat 5 with PID: $PID"
     return $RETVAL
}
...

The server starts just fine and everything works except for the log file 
isn't created or written.


I've tried configuring /etc/syslog-ng/syslog-ng.conf several different 
ways but none have worked.  I read somewhere that syslogappender sends 
logs via udp so I even tried configuring a seperate source just for tomcat:

source tomcat {
         internal();
         udp(ip("127.0.0.1") port(514));
};

and then logging to that source.

# Tomcat system logs
destination tomcat { file("/var/log/tomcat/tomcat-log" owner(tomcat) 
group(logs) perm(0640) ); };
log { source(tomcat);  destination(tomcat); };


This didn't work.

I'm at the end of my rope here, any suggestions/help will be greatly 
appreciated.

Thanks,
-Mark




---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Tomcat -- All Logs to Syslog

Posted by Mark F <mf...@knology.net>.
Jacob Kjome wrote:
> Do you have both log4j.jar and commons-logging.jar in CATALINA_HOME/common/lib? 
> Note that is "comons-logging.jar", not "commons-logging-api.jar".
> 
> Jake
> 
> Quoting Mark F <mf...@knology.net>:
> 
>> Version: 5.0.30
>> Log4j:   1.3
>>
>>
>> I'm attempting to use log4j for all of tomcat logs.  I would like for
>> all logging to be output to the syslog daemon running on localhost.
>>
>> I've configured a log4j.properties file and placed it in
>> $CATALINA_HOME/common/classes:
>>
>> log4j.rootLogger=INFO, A1
>> log4j.appender.A1=org.apache.log4j.net.SyslogAppender
>> log4j.appender.A1.SyslogHost=127.0.0.1
>> log4j.appender.A1.facility=LOCAL7
>> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
>> log4j.appender.A1.layout.ConversionPattern=%-4r %-5p %c{2} %M.%L %x - %m\n
>>
>> I've configured the server to start with jsvc as the user "tomcat".
>>
>> /etc/init.d/tomcat:
>> ...
>> JAVA_HOME=$JAVA_HOME
>> CATALINA_HOME=/usr/share/tomcat
>> DM_HOME=/opt/documentum
>> DFC_CONFIG=$DM_HOME/shared/config/
>> DFC_HOME=$DM_HOME/shared/dfc
>> DAEMON_HOME=$CATALINA_HOME/bin
>> TOMCAT_USER=tomcat
>> TOMCAT_LOG_DIR=/var/log/tomcat
>> LOG4J_CONFIG=log4j.properties
>> TMP_DIR=$CATALINA_HOME/temp
>> ...
>> start() {
>>      #
>>      # Start Tomcat
>>      #
>>      chown -R $TOMCAT_USER:$TOMCAT_USER /usr/share/tomcat/*
>>      $DAEMON_HOME/jsvc \
>>      -user $TOMCAT_USER \
>>      -home $JAVA_HOME \
>>      -Dlog4j.debug \
>>      -Dcatalina.home=$CATALINA_HOME \
>>      -Djava.io.tmpdir=$TMP_DIR \
>>      -Dlog4j.configuration=$LOG4J_CONFIG \
>>
>> -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
>> \
>>      $CATALINA_OPTS \
>>      -cp $CLASSPATH org.apache.catalina.startup.Bootstrap
>>      RETVAL=$?
>>      echo
>>      [ $RETVAL = 0 ] && touch /var/lock/subsys/tomcat
>>      PID=`cat /var/run/jsvc.pid`
>>      echo "Starting Tomcat 5 with PID: $PID"
>>      return $RETVAL
>> }
>> ...
>>
>> The server starts just fine and everything works except for the log file
>> isn't created or written.
>>
>>
>> I've tried configuring /etc/syslog-ng/syslog-ng.conf several different
>> ways but none have worked.  I read somewhere that syslogappender sends
>> logs via udp so I even tried configuring a seperate source just for tomcat:
>>
>> source tomcat {
>>          internal();
>>          udp(ip("127.0.0.1") port(514));
>> };
>>
>> and then logging to that source.
>>
>> # Tomcat system logs
>> destination tomcat { file("/var/log/tomcat/tomcat-log" owner(tomcat)
>> group(logs) perm(0640) ); };
>> log { source(tomcat);  destination(tomcat); };
>>
>>
>> This didn't work.
>>
>> I'm at the end of my rope here, any suggestions/help will be greatly
>> appreciated.
>>
>> Thanks,
>> -Mark
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>


Yes, and if it I add -outfile to jsvc (tomcat start) script and set it 
to a file.  I can see in the file that it appears to be working.

Thanks,
-Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Tomcat -- All Logs to Syslog

Posted by Jacob Kjome <ho...@visi.com>.
I use WinXP, and I've never seen any message about the "Tomcat Native library",
so you'll have to ping the tomcat-user list for info on that.

I'm not sure about the SysLogAppender either.  I've never used it.  Doesn't it
require a native (C++) library to be installed?  Try something slightly less
exotic like a ConsoleAppender and and FileAppender.  It looks like Log4j is
generally working so you are getting past your previous issues.  The other
issues here seem unrelated to your original problem.  You can treat that as
good or bad news depending on your point of vew.

Hopefully someone else here can provide information on the SysLogApender issue
you are running into.

Jake

Quoting Mark F <mf...@knology.net>:

> Jacob Kjome wrote:
> > "commons-logging-api.jar" should be in CATALINA_HOME/bin.
> "commons-logging.jar"
> > and log4j.jar should be in CATALINA_HOME/common/lib.  Do *not* put
> > "commons-logging.jar" in the "bin" directory, only
> "commons-logging-api.jar".
> > Do you still have the CNFE problem?  If you still do, I'm not sure what to
> say?
> >  I know this setup works fine with Tomcat-5.5.xx, which I would recommend
> moving
> > to ASAP.
> >
> > Jake
> I've moved to tomcat 5.5, I'm not sure I can stay at this version as it
> is not officially supported by commercial software we use.
>
> Still, I was hoping to work out the problem I'm having using it.
>
> With 5.5 configured as you have suggested above I get:
>
> INFO main org.apache.catalina.core.AprLifecycleListener - The Apache
> Tomcat Native library which allows optimal performance in production
> environments was not found on the java.library.path: /usr/share/tomcat/bin
>              INFO main org.apache.catalina.core.AprLifecycleListener -
> The Apache Tomcat Native library which allows optimal performance in
> production environments was not found on the java.library.path:
> /usr/share/tomcat/bin
>              ERROR main org.apache.log4j.net.SyslogAppender - Attempted
> to log with inactive appender named [S].
>              INFO main org.apache.coyote.http11.Http11BaseProtocol -
> Initializing Coyote HTTP/1.1 on http-80
>              ERROR main org.apache.log4j.net.SyslogAppender - Attempted
> to log with inactive appender named [S].
>              INFO main org.apache.catalina.startup.Catalina -
> Initialization processed in 643 ms
>              INFO main org.apache.catalina.startup.Catalina -
> Initialization processed in 643 ms
>              ERROR main org.apache.log4j.net.SyslogAppender - Attempted
> to log with inactive appender named [S].
>
> -----------------
>
>
> What is meant by "inactive appender"?
>
> Thanks,
> -Mark
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>




---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Tomcat -- All Logs to Syslog

Posted by Mark F <mf...@knology.net>.
Jacob Kjome wrote:
> "commons-logging-api.jar" should be in CATALINA_HOME/bin.  "commons-logging.jar"
> and log4j.jar should be in CATALINA_HOME/common/lib.  Do *not* put
> "commons-logging.jar" in the "bin" directory, only "commons-logging-api.jar". 
> Do you still have the CNFE problem?  If you still do, I'm not sure what to say?
>  I know this setup works fine with Tomcat-5.5.xx, which I would recommend moving
> to ASAP.
> 
> Jake
I've moved to tomcat 5.5, I'm not sure I can stay at this version as it 
is not officially supported by commercial software we use.

Still, I was hoping to work out the problem I'm having using it.

With 5.5 configured as you have suggested above I get:

INFO main org.apache.catalina.core.AprLifecycleListener - The Apache 
Tomcat Native library which allows optimal performance in production 
environments was not found on the java.library.path: /usr/share/tomcat/bin
             INFO main org.apache.catalina.core.AprLifecycleListener - 
The Apache Tomcat Native library which allows optimal performance in 
production environments was not found on the java.library.path: 
/usr/share/tomcat/bin
             ERROR main org.apache.log4j.net.SyslogAppender - Attempted 
to log with inactive appender named [S].
             INFO main org.apache.coyote.http11.Http11BaseProtocol - 
Initializing Coyote HTTP/1.1 on http-80
             ERROR main org.apache.log4j.net.SyslogAppender - Attempted 
to log with inactive appender named [S].
             INFO main org.apache.catalina.startup.Catalina - 
Initialization processed in 643 ms
             INFO main org.apache.catalina.startup.Catalina - 
Initialization processed in 643 ms
             ERROR main org.apache.log4j.net.SyslogAppender - Attempted 
to log with inactive appender named [S].

-----------------


What is meant by "inactive appender"?

Thanks,
-Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Tomcat -- All Logs to Syslog

Posted by Jacob Kjome <ho...@visi.com>.
"commons-logging-api.jar" should be in CATALINA_HOME/bin.  "commons-logging.jar"
and log4j.jar should be in CATALINA_HOME/common/lib.  Do *not* put
"commons-logging.jar" in the "bin" directory, only "commons-logging-api.jar". 
Do you still have the CNFE problem?  If you still do, I'm not sure what to say?
 I know this setup works fine with Tomcat-5.5.xx, which I would recommend moving
to ASAP.

Jake


Quoting Mark F <mf...@knology.net>:

> Jacob Kjome wrote:
> > Do you have both log4j.jar and commons-logging.jar in
> CATALINA_HOME/common/lib?
> > Note that is "comons-logging.jar", not "commons-logging-api.jar".
> >
> > Jake
> >
> > Quoting Mark F <mf...@knology.net>:
> >
> >> Version: 5.0.30
> >> Log4j:   1.3
> >>
> >>
> >> I'm attempting to use log4j for all of tomcat logs.  I would like for
> >> all logging to be output to the syslog daemon running on localhost.
> >>
> >> I've configured a log4j.properties file and placed it in
> >> $CATALINA_HOME/common/classes:
> >>
> >> log4j.rootLogger=INFO, A1
> >> log4j.appender.A1=org.apache.log4j.net.SyslogAppender
> >> log4j.appender.A1.SyslogHost=127.0.0.1
> >> log4j.appender.A1.facility=LOCAL7
> >> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
> >> log4j.appender.A1.layout.ConversionPattern=%-4r %-5p %c{2} %M.%L %x - %m\n
> >>
> >> I've configured the server to start with jsvc as the user "tomcat".
> >>
> >> /etc/init.d/tomcat:
> >> ...
> >> JAVA_HOME=$JAVA_HOME
> >> CATALINA_HOME=/usr/share/tomcat
> >> DM_HOME=/opt/documentum
> >> DFC_CONFIG=$DM_HOME/shared/config/
> >> DFC_HOME=$DM_HOME/shared/dfc
> >> DAEMON_HOME=$CATALINA_HOME/bin
> >> TOMCAT_USER=tomcat
> >> TOMCAT_LOG_DIR=/var/log/tomcat
> >> LOG4J_CONFIG=log4j.properties
> >> TMP_DIR=$CATALINA_HOME/temp
> >> ...
> >> start() {
> >>      #
> >>      # Start Tomcat
> >>      #
> >>      chown -R $TOMCAT_USER:$TOMCAT_USER /usr/share/tomcat/*
> >>      $DAEMON_HOME/jsvc \
> >>      -user $TOMCAT_USER \
> >>      -home $JAVA_HOME \
> >>      -Dlog4j.debug \
> >>      -Dcatalina.home=$CATALINA_HOME \
> >>      -Djava.io.tmpdir=$TMP_DIR \
> >>      -Dlog4j.configuration=$LOG4J_CONFIG \
> >>
> >>
> -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
> >> \
> >>      $CATALINA_OPTS \
> >>      -cp $CLASSPATH org.apache.catalina.startup.Bootstrap
> >>      RETVAL=$?
> >>      echo
> >>      [ $RETVAL = 0 ] && touch /var/lock/subsys/tomcat
> >>      PID=`cat /var/run/jsvc.pid`
> >>      echo "Starting Tomcat 5 with PID: $PID"
> >>      return $RETVAL
> >> }
> >> ...
> >>
> >> The server starts just fine and everything works except for the log file
> >> isn't created or written.
> >>
> >>
> >> I've tried configuring /etc/syslog-ng/syslog-ng.conf several different
> >> ways but none have worked.  I read somewhere that syslogappender sends
> >> logs via udp so I even tried configuring a seperate source just for
> tomcat:
> >>
> >> source tomcat {
> >>          internal();
> >>          udp(ip("127.0.0.1") port(514));
> >> };
> >>
> >> and then logging to that source.
> >>
> >> # Tomcat system logs
> >> destination tomcat { file("/var/log/tomcat/tomcat-log" owner(tomcat)
> >> group(logs) perm(0640) ); };
> >> log { source(tomcat);  destination(tomcat); };
> >>
> >>
> >> This didn't work.
> >>
> >> I'm at the end of my rope here, any suggestions/help will be greatly
> >> appreciated.
> >>
> >> Thanks,
> >> -Mark
> >>
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> >> For additional commands, e-mail: log4j-user-help@logging.apache.org
> >>
>
> I just checked and I have both of those jars but they are in
> CATALINA_HOME/bin -- when I try to move them to CATALINA_HOME/common/lib
> I get a CNFE.
>
> Thanks,
> -Mark
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>




---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Tomcat -- All Logs to Syslog

Posted by Mark F <mf...@knology.net>.
Jacob Kjome wrote:
> Do you have both log4j.jar and commons-logging.jar in CATALINA_HOME/common/lib? 
> Note that is "comons-logging.jar", not "commons-logging-api.jar".
> 
> Jake
> 
> Quoting Mark F <mf...@knology.net>:
> 
>> Version: 5.0.30
>> Log4j:   1.3
>>
>>
>> I'm attempting to use log4j for all of tomcat logs.  I would like for
>> all logging to be output to the syslog daemon running on localhost.
>>
>> I've configured a log4j.properties file and placed it in
>> $CATALINA_HOME/common/classes:
>>
>> log4j.rootLogger=INFO, A1
>> log4j.appender.A1=org.apache.log4j.net.SyslogAppender
>> log4j.appender.A1.SyslogHost=127.0.0.1
>> log4j.appender.A1.facility=LOCAL7
>> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
>> log4j.appender.A1.layout.ConversionPattern=%-4r %-5p %c{2} %M.%L %x - %m\n
>>
>> I've configured the server to start with jsvc as the user "tomcat".
>>
>> /etc/init.d/tomcat:
>> ...
>> JAVA_HOME=$JAVA_HOME
>> CATALINA_HOME=/usr/share/tomcat
>> DM_HOME=/opt/documentum
>> DFC_CONFIG=$DM_HOME/shared/config/
>> DFC_HOME=$DM_HOME/shared/dfc
>> DAEMON_HOME=$CATALINA_HOME/bin
>> TOMCAT_USER=tomcat
>> TOMCAT_LOG_DIR=/var/log/tomcat
>> LOG4J_CONFIG=log4j.properties
>> TMP_DIR=$CATALINA_HOME/temp
>> ...
>> start() {
>>      #
>>      # Start Tomcat
>>      #
>>      chown -R $TOMCAT_USER:$TOMCAT_USER /usr/share/tomcat/*
>>      $DAEMON_HOME/jsvc \
>>      -user $TOMCAT_USER \
>>      -home $JAVA_HOME \
>>      -Dlog4j.debug \
>>      -Dcatalina.home=$CATALINA_HOME \
>>      -Djava.io.tmpdir=$TMP_DIR \
>>      -Dlog4j.configuration=$LOG4J_CONFIG \
>>
>> -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
>> \
>>      $CATALINA_OPTS \
>>      -cp $CLASSPATH org.apache.catalina.startup.Bootstrap
>>      RETVAL=$?
>>      echo
>>      [ $RETVAL = 0 ] && touch /var/lock/subsys/tomcat
>>      PID=`cat /var/run/jsvc.pid`
>>      echo "Starting Tomcat 5 with PID: $PID"
>>      return $RETVAL
>> }
>> ...
>>
>> The server starts just fine and everything works except for the log file
>> isn't created or written.
>>
>>
>> I've tried configuring /etc/syslog-ng/syslog-ng.conf several different
>> ways but none have worked.  I read somewhere that syslogappender sends
>> logs via udp so I even tried configuring a seperate source just for tomcat:
>>
>> source tomcat {
>>          internal();
>>          udp(ip("127.0.0.1") port(514));
>> };
>>
>> and then logging to that source.
>>
>> # Tomcat system logs
>> destination tomcat { file("/var/log/tomcat/tomcat-log" owner(tomcat)
>> group(logs) perm(0640) ); };
>> log { source(tomcat);  destination(tomcat); };
>>
>>
>> This didn't work.
>>
>> I'm at the end of my rope here, any suggestions/help will be greatly
>> appreciated.
>>
>> Thanks,
>> -Mark
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>

I just checked and I have both of those jars but they are in 
CATALINA_HOME/bin -- when I try to move them to CATALINA_HOME/common/lib 
I get a CNFE.

Thanks,
-Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Tomcat -- All Logs to Syslog

Posted by Jacob Kjome <ho...@visi.com>.
Do you have both log4j.jar and commons-logging.jar in CATALINA_HOME/common/lib? 
Note that is "comons-logging.jar", not "commons-logging-api.jar".

Jake

Quoting Mark F <mf...@knology.net>:

> Version: 5.0.30
> Log4j:   1.3
>
>
> I'm attempting to use log4j for all of tomcat logs.  I would like for
> all logging to be output to the syslog daemon running on localhost.
>
> I've configured a log4j.properties file and placed it in
> $CATALINA_HOME/common/classes:
>
> log4j.rootLogger=INFO, A1
> log4j.appender.A1=org.apache.log4j.net.SyslogAppender
> log4j.appender.A1.SyslogHost=127.0.0.1
> log4j.appender.A1.facility=LOCAL7
> log4j.appender.A1.layout=org.apache.log4j.PatternLayout
> log4j.appender.A1.layout.ConversionPattern=%-4r %-5p %c{2} %M.%L %x - %m\n
>
> I've configured the server to start with jsvc as the user "tomcat".
>
> /etc/init.d/tomcat:
> ...
> JAVA_HOME=$JAVA_HOME
> CATALINA_HOME=/usr/share/tomcat
> DM_HOME=/opt/documentum
> DFC_CONFIG=$DM_HOME/shared/config/
> DFC_HOME=$DM_HOME/shared/dfc
> DAEMON_HOME=$CATALINA_HOME/bin
> TOMCAT_USER=tomcat
> TOMCAT_LOG_DIR=/var/log/tomcat
> LOG4J_CONFIG=log4j.properties
> TMP_DIR=$CATALINA_HOME/temp
> ...
> start() {
>      #
>      # Start Tomcat
>      #
>      chown -R $TOMCAT_USER:$TOMCAT_USER /usr/share/tomcat/*
>      $DAEMON_HOME/jsvc \
>      -user $TOMCAT_USER \
>      -home $JAVA_HOME \
>      -Dlog4j.debug \
>      -Dcatalina.home=$CATALINA_HOME \
>      -Djava.io.tmpdir=$TMP_DIR \
>      -Dlog4j.configuration=$LOG4J_CONFIG \
>
> -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
> \
>      $CATALINA_OPTS \
>      -cp $CLASSPATH org.apache.catalina.startup.Bootstrap
>      RETVAL=$?
>      echo
>      [ $RETVAL = 0 ] && touch /var/lock/subsys/tomcat
>      PID=`cat /var/run/jsvc.pid`
>      echo "Starting Tomcat 5 with PID: $PID"
>      return $RETVAL
> }
> ...
>
> The server starts just fine and everything works except for the log file
> isn't created or written.
>
>
> I've tried configuring /etc/syslog-ng/syslog-ng.conf several different
> ways but none have worked.  I read somewhere that syslogappender sends
> logs via udp so I even tried configuring a seperate source just for tomcat:
>
> source tomcat {
>          internal();
>          udp(ip("127.0.0.1") port(514));
> };
>
> and then logging to that source.
>
> # Tomcat system logs
> destination tomcat { file("/var/log/tomcat/tomcat-log" owner(tomcat)
> group(logs) perm(0640) ); };
> log { source(tomcat);  destination(tomcat); };
>
>
> This didn't work.
>
> I'm at the end of my rope here, any suggestions/help will be greatly
> appreciated.
>
> Thanks,
> -Mark
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>




---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org