log

Tomcat Application Generating too many logs

Hi, I have an application which runs on tomcat 6.0.20 server on linux ubuntu server. It generates a huge amount of logs in the catalina.out folder, most of these are generated while using the application, but are not generated by the application. Some of the logs it generates are given below, Apr 16, 2010 2:55:24 PM org.apache.to...

how to log incorrect entries (php .htaccess)

Hey there, I have created an .htaccess files that will prevent anyone from accessing a file unless he has a username and a password, how can I log files when anyone tries to access with incorrect information and then ban the Ip address. I know it in php but .htaccess i am still new to it. Thank you everyone. ...

How do I see the last 10 commits in reverse-chronoligical order with SVN?

Using the SVN commandline is there a way to show the last X number of commits along with commit messages in revere-chronological order? ...

How to get debugging statements for Android in Eclipse

I've read the lame documentation, and checked other answers. I'd like my Android app to print some debug statements in the logcat window of Eclispe. If I use the isLoggable method on the various types of debug levels on the Log class, I find that WARN and INFO are returning true. Log.w, and Log.i do not produce any output. Does anyon...

Prevent Apache from logging 404 Errors, logging all other errors

I would like to disable 404 errors from appearing in my Apache error logs. The reason for this is that I have a custom page that handles 404 errors, performing any necessary redirects. If no valid redirect is found in this 404 page, then a nice page appears and the url and other information are logged by the script. Because of this, I do...

Log Unittest output to a text file

Hello, I am trying to log the output of tests to a text file. I am using the unittest module and want to log results into a text file instead of the screen. I have some script here to explain what has been tryied so far. This is the test script. import unittest, sys class TestOne(unittest.TestCase): def setUp(self): self....

Can Apache httpd be made to log errors to console instead of log files under Windows?

I'm doing infrequent development with Apache/PHP on my Windows machine so I've opted to run apache as a console process instead of a service. It would be nice if errors could be logged to the console window instead of a logfile so I can see them immediately. Can this be done somehow? It doesn't seem that apache has such a capability buil...

Svn log - svn: '.' is not a working copy

I'm getting "svn: '.' is not a working copy" when i use the svn log command. I know that i need a working copy for the log command to work but can this be done directly on a repository? My goal is to display the information (change history) of a repository. I think updating the working copy whenever i need the log information is not ...

apache logs https GET parameters?

If I request a page like https://www.example.com/?pippo=123, what would appear in the apache logs? I know that POST parameters are not logged, but for GET ones? Tkz! ...

Git + Capistrano = Automatic Release Notes Generator ?

We use git (github) and capistrano (like 99% of the Rails shops out there) to deploy our app to production. What I'd like to do is, after every cap * deploy generate a text file containing all the git commit comments since the last deploy. I can then take that list of commit comments, clean it up, and put it somewhere for consumption. ...

write client ip in iis 7.0 log over firewalls

Hi, I need a solution for IIS 7.0 which runs on windows server 2008 64bit to write my clients IP to IIS logs while the server is behind firewalls and proxies (Pass X-Forwarded-For header value). I've tried to install the an ISAPI Filter written by Joe Pruitt. it works great on Windows Server 2003 32bit IIS 6.0, but seems to do nothing ...

How to delete Tomcat Access Log after n days?

I only would like to keep the Access Logs of the last n days created by Tomcat Access Log Valve. http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Access%20Log%20Valve But there seems to be no configuration-Attribute to define how long to keep the log-files? I guess this is because "Access Log Valve" only creates log files and d...

iphone crash log with dSym not loading debug information

Hello, I was trying to see why my application crashed on the device (iPhone) using the dSym generated along the executable (in ad hoc), but I don't know why, there isn't any useful information. It seems that "Organizer" is able to find the appropriate dSym and translate some data into more readable one, but when it comes to my applicati...

flashlog viewer

Hi all, I want to build an application using air. The application should load the flashlog file and display the contents after performing some text filtering. But when i load the application this clears my flashlog.txt though my file mode is READ. I can understand that running my air application clears the flashlog and prepares it for n...

Show number of changed lines per author in git

i want to see the number of removed/added line, grouped by author for a given branch in git history. there is git shortlog -s which shows me the number of commits per author. is there anything similar to get an overall diffstat? ...

Can I get hg log to print the history in reverse order?

If not, is this a feature that git has? ...

Can I get git log to print the history in reverse order?

I recently learned that I can get hg log to print the history in reverse order with: hg log -r : So of course I tried: git log -r : Well, it didn't work. So what is the command to do the same thing in git? ...

python logparse search specific text

hi, I am using this function in my code to return the strings i want from reading the log file, I want to grep the "exim" process and return the results, but running the code gives no error, but the output is limited to three lines, how can i just get the output only related to exim process.. #output: {'date': '13', 'process': 'sys...

Determining what is causing massive log file growth on a basically inactive SQL 2005 DB

I have a SQL DB in a test environment that ist he back end datasource for a test web site. There is no activity on the website (because it is in our test environment) but every couple of days the DB log files grow extremely large causing issues with backups, etc.. This is a test environment so there is no activity that we don't have co...

AWK: compare apache dates without using regular expression

I'm writing a loganalysis application and wanted to grab apache log records between two certain dates. Assume that a date is formated as such: 22/Dec/2009:00:19 (day/month/year:hour:minute) Currently, I'm using a regular expression to replace the month name with its numeric value, remove the separators, so the above date is converted to...