## Disable log

Problems with the Windows version of XAMPP, questions, comments, and anything related.

### Disable log

How to disable error log completely? I'm making stand-alone kiosk installation and found this as one thing should take care of. Error log complains about mysql-character set, but my app. is working just fine. So I could just stop logging.

I get acces-log disabled by commenting log_module out, but it didn't stop error-logs. Or if this is not possible, is there easy way to "rotate" logs in windows? I'm absolutely noob, so if you can answer, please make it simple Thanks!
dingbat

Posts: 11
Joined: 26. November 2007 12:33

If your talking about the Apache error.log then look for this in
xampp\apache\conf\httpd.conf file
Code: Select all
## ErrorLog: The location of the error log file.# If you do not specify an ErrorLog directive within a <VirtualHost># container, error messages relating to that virtual host will be# logged here.  If you *do* define an error logfile for a <VirtualHost># container, that host's errors will be logged there and not here.#ErrorLog logs/error.log

See if this stops it by commenting out the line like this
# ErrorLog logs/error.log

Save the file and restart Apache - always make a backup of .conf and .ini files before editing then if you make a typo and Apache fails to start you can then revert to the known good file.

===========================================
1. The new DeskTopXampp Launch Control for XAMPP / XAMPPlite
Posted by Ridgewood available from Ridgewood'sDTX web site

2. Build Rich AJAX Applications - Faster
TIBCO General Interface Pro Edition but FREE and Open Source
Fully working with NO donations required to get a user/password
===========================================
Izzy

Posts: 3344
Joined: 25. April 2006 17:06

I think I tried that already, and it still logs errors?
dingbat

Posts: 11
Joined: 26. November 2007 12:33

dingbat wrote:I think I tried that already, and it still logs errors?

You didn't say you had tried that in your post.

What else have you tried?

Have you tried a Google search?

Have you tried a search of this forum?

===========================================
1. The new DeskTopXampp Launch Control for XAMPP / XAMPPlite
Posted by Ridgewood available from Ridgewood'sDTX web site

2. Build Rich AJAX Applications - Faster
TIBCO General Interface Pro Edition but FREE and Open Source
Fully working with NO donations required to get a user/password
===========================================
Izzy

Posts: 3344
Joined: 25. April 2006 17:06

Yes, I didn't mention that, sorry. Actually I have now tried to comment out every log-related line in conf, but no result. Do you think it should stop error-logging too? Or is it always on?

And yes, I have googled and searched from this forum, but no help with this. I have learned that I could use rotation to archive logs, but haven't seen help how to do this in windows.

Edit: I also tried to lower the level of notfications in error.log, setting

Code: Select all
LogLevel emerg

It still produces this repeating error (propably with each request)

Code: Select all
File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2)Character set '#48' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file
dingbat

Posts: 11
Joined: 26. November 2007 12:33

I am not sure if it is possible to disable the error log but all you need to do is delete the file error.log as Apache will recreate it when it has to.

Do this on a regular basis by what ever means at your disposal and the file will not get too big.

===========================================
1. The new DeskTopXampp Launch Control for XAMPP / XAMPPlite
Posted by Ridgewood available from Ridgewood'sDTX web site

2. Build Rich AJAX Applications - Faster
TIBCO General Interface Pro Edition but FREE and Open Source
Fully working with NO donations required to get a user/password
===========================================
Izzy

Posts: 3344
Joined: 25. April 2006 17:06

Problem is that I should leave the machine place where is not continuing control. So I'm not near it all the time

I should have tell this too, in first place
dingbat

Posts: 11
Joined: 26. November 2007 12:33

dingbat wrote:Problem is that I should leave the machine place where is not continuing control. So I'm not near it all the time

I should have tell this too, in first place

http://www.wincron.net/

http://www.tomasello.com/software/wincron/

===========================================
1. The new DeskTopXampp Launch Control for XAMPP / XAMPPlite
Posted by Ridgewood available from Ridgewood'sDTX web site

2. Build Rich AJAX Applications - Faster
TIBCO General Interface Pro Edition but FREE and Open Source
Fully working with NO donations required to get a user/password
===========================================
Izzy

Posts: 3344
Joined: 25. April 2006 17:06

Thanks. Looks quite spooky for me...
dingbat

Posts: 11
Joined: 26. November 2007 12:33

It still produces this repeating error (propably with each request)

If you are using PHP4 (or Perl), that's "normal".

How to disable error log completely?

That's not really a good idea. But using "nul" as filename for the error log should work.
Wiedmann
AF Moderator

Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Hey, I could test that. Yes, I have php 4 because cms I'm using needs that. Or to be more strict, one of the plugins need that. Thanks, I'll try nul. Or should it be null with double-l's?

BTW, I tried to find easier start-up software which would simply delete error.log after restart, but didn't find any which would do it always, not just once.
dingbat

Posts: 11
Joined: 26. November 2007 12:33

The "nul" seems to do that! Thank's a lot, you were both very kind!
dingbat

Posts: 11
Joined: 26. November 2007 12:33

I tried to find easier start-up software which would simply delete error.log after restart,

Scheduled tasks from Windows can do this.
Wiedmann
AF Moderator

Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Can they? I have never actually checked, I have always thought they can just drive scheduled programs or so.
dingbat

Posts: 11
Joined: 26. November 2007 12:33

they can just drive scheduled programs or so.

Programs like a batchfile with (example):
Code: Select all
@del \foo\bar\error.log@sc start Apache2.2
Wiedmann
AF Moderator

Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Next

Return to XAMPP for Windows

### Who is online

Users browsing this forum: No registered users and 58 guests