Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

RE: No way to stop jk2.log from appearing?

Robert Priest

2003-10-16


correction. That file is jk_logger_file.c, not jk_logger.c

-----Original Message-----
From: Robert Priest [mailto:Robert.Priest@(protected)]
Sent: Thursday, October 16, 2003 9:54 AM
To: 'Tomcat Users List'
Subject: No way to stop jk2.log from appearing?


from the following code snippet from (j-t-c\jk\native2\common\jk_logger.c):

static int JK_METHOD jk2_logger_file_init(jk_env_t *env,jk_logger_t *_this )
{
  FILE *oldF=(FILE *)_this->logger_private;
  FILE *f=NULL;
  jk_workerEnv_t *workerEnv=env->getByName( env, "workerEnv" );
  if( _this->name==NULL ) {
    _this->name="${serverRoot}/logs/jk2.log";
  }
....

I can see that even if I don't want a jk log, I will get one?

I know I can turn all logging of through my log4j.properties file, but what
If I don't even
want the file appearing all together?

Should it be like this?


Just a question...

I would like to just stop the file from appearing, even if it is empty.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.