logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Remove SessionID mapping from log files
Author
servmgr2004



Joined: 18 Apr 2014
Posts: 3
Location: USA

PostPosted: Fri 18 Apr '14 17:44    Post subject: Remove SessionID mapping from log files Reply with quote

Since the session ID is added to the TomCat stdout log files, they have grown drastically. Is there a way to turn off that portion of the logging file?
I have tons of lines with:
[DEBUG] 04/101/2014 08:04:19:290 : removing session B17C257EA8686C7210E87422C9F24F31 from SessionMap
[DEBUG] 04/101/2014 08:04:19:290 : removing session 2820CA65178B876CCB91061CB2F3CAE2 from SessionMap
[DEBUG] 04/101/2014 08:04:19:586 : removing session 6841053A1A1EA8B80B4FF5C28D66B18F from SessionMap
[DEBUG] 04/101/2014 08:04:19:586 : removing session 7A53F8E3BD1AE64DE04A9E2315FB045C from SessionMap
[DEBUG] 04/101/2014 08:04:21:162 : removing session E1B928641C63E213038782A0CACE3F48 from SessionMap
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7304
Location: Germany, Next to Hamburg

PostPosted: Sun 20 Apr '14 18:53    Post subject: Reply with quote

Well as it says: DEBUG. So you may change the loglevel in your config.
Back to top
servmgr2004



Joined: 18 Apr 2014
Posts: 3
Location: USA

PostPosted: Sun 20 Apr '14 19:22    Post subject: Reply with quote

Right, but I am trying to figure out wher3 to make the changes.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7304
Location: Germany, Next to Hamburg

PostPosted: Sun 20 Apr '14 19:26    Post subject: Reply with quote

in your httpd.conf there is LogLevel

See also the docs

http://httpd.apache.org/docs/current/mod/core.html#loglevel

I don't like RTFM either, but it helps.
Back to top
servmgr2004



Joined: 18 Apr 2014
Posts: 3
Location: USA

PostPosted: Mon 21 Apr '14 15:04    Post subject: Reply with quote

I looked into the article, but I use the log4j logging. This is not dealing with the httpd file.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7304
Location: Germany, Next to Hamburg

PostPosted: Tue 22 Apr '14 22:51    Post subject: Reply with quote

So it has nothing to do with apache...

Find in your code logger.setLevel(Level.DEBUG);
Back to top


Reply to topic   Topic: Remove SessionID mapping from log files View previous topic :: View next topic
Post new topic   Forum Index -> Other Software