log

Log meta-data to be part of entity tables or separate?

Hello. For entities in my application, I am planning to log common meta-data like DateCreated, DateModified, IPAddress, etc. Does it make sense to add these columns in entity tables or is it better to have a single table for logging meta-data where each row has link back to the item that it corresponds to? Later for purpose of reporting ...

how can I find out which user send the print command to windows/windows server programmatically?

Hi , I have a windows network (peer-2-peer) as well as Active Directory and I need to log the name of users who send any kind of print to the server. I want to write a program to log their username and/or their respective IP and I'm familiar with c#.net and c++ but I haven't found any clue regarding how to solve my problem. is there any...

iPhone crash log?

I have provisioned an iphone and had the user install the app. It fails. Is there a crash log that I can see why it failed on the iphone? Ian ...

python log view application

I want to have GUI application or Web app where I can view the python log information. I can choose any formatter required. But it should work with standard logging module. I have configured my logs to file. But I wanted to have log to be stored to mysql db (it is possible) but I badly need user interface to view the log from remote pl...

Log4j error when using unionserver for flash

Hey guys. I am getting the following output when i start my java union server - its a jar and i dont have access to the source code but i think this issue is a log4j properties file error as it works on windows, and not on linux. The error is: log4j:WARN No appenders could be found for logger (net.user1.union.core.H). log4j:WARN Pleas...

Vim: Syntax Files : Region match help

This is a follow-up from: http://stackoverflow.com/questions/2193157/vim-simple-steps-to-create-syntax-highlight-file-for-logfiles I am trying to use the 'region-match' facility to syntax-highlight stack-traces in some logfiles: these logfiles (log4j-based) look a bit like this: YYYY-MM-DD HH:MM:ss,SSSS...INFO...Message YYYY-MM-DD HH:...

IIS logging: don't write to log entry if match specific condition

Hi, i'm looking for some way to avoid logging some specific files like /WebResource.axd and /ScriptResource.axd is there any way to write some code lines in Global.asa or add some configurations to do that? thanks ...

How to log python program activity in Mac OS X

Hello, I'm pretty new to Python programming so I have this question: How can I log a Python application activity into /var/log with Mac OS X? I tried using syslog module, but it does not seem to write anything. I tried also with the logging module, but I always run into a permission error. How can I do it? Update: import logging im...

how to keep last n number of line from log file in php

hi i want to delete all lines from old log files and keep fresh 50 lines which is at the bottom plz give me the php code do something like this and if possible can we change the orientation of these lines normal input 111111 2222222 3333333 44444444 5555555 output like 555555 4444444 3333333 22222 111111 to see the fresh log at ...

Formatting an output file.

I'm currently indexing my music collection with python. Ideally I'd like my output file to be formatted as; "Artist; Album; Tracks - length - bitrate - md5 Artist2; Album2; Tracks - length - bitrate - md5" But I can't seem to work out how to achieve this. Any suggestions? ...

Define the location of Java fatal error log in runtime

Hi, is there any way to define the location of the fatal error logs in Java (hs_err_*.pid.log) in the runtime? I know from [1] that I can set the location as parameter, but I want to change it in runtime. Philip [1] http://java.sun.com/javase/6/webnotes/trouble/TSG-Desktop/html/felog.html ...

Alter the cruisecontrol log with XSLTLogPublisher

We build our project from CruiseControl. We have a ant script running some exec commands, and the output of this is placed in the CDATA part of that message, and its priority is set to "info". Now I have created an XSL that modifies this priority depending on the CDATA output, so it creates a new logfile that I want CruiseControl to use...

is there a gem used to store rails logs in mysql?

I finally have my application written, and now I have a request to store the logs into a mysql db for later searching. Any ideas besides log4r? Thanks! Tonya ...

Trace log Example does not work in Sharepoint 2010

The Sharepoint Trace Log Sample given at http://msdn.microsoft.com/en-us/library/aa979522.aspx & explained at /en-us/library/aa979595.aspx does not work in in Sharepoint 2010. Any ideas of how to Write to Trace Log from webpart( non-sandboxed) ...

Parse a log4j log file

We have several applications that use log4j for logging. I need to get a log4j parser working so we can combine multiple log files and run automated analysis on them. I'm not looking to reinvent the wheel, so can someone point me to a decent pre-existing parser? I do have the log4j conversion pattern if that helps. If not, I'll have to ...

PostgreSQL: Log query only on error

I'm getting the error message: "Invalid byte sequence for encoding "UTF8": 0x9f Ok, now I know somewhere my php app is trying to query using that 0x9f character. But I have no idea WHERE. I checked postgresql.conf but I didn't find anything like "log_on_error". There's only the log_statement parameter which causes postgres to log all s...

SVN Log from Dead Server

Hello My organisation ran a SVN repository server for 2 years. This server died in November, we didn't loose any files thanks to the local copies, but we lost the history, which is obviously a shame. I still have my local repository copies and I'd like to know if I can regain the SVN-Log from this local copy. Usually for running svn l...

How do I write outputs to the Log in Android?

I want to write some debugging output to the log to review it with logcat. If I write something to System.out this is already displayed in logcat. What is the clean way to write to the log and add levels and tags to my output? ...

Objective-C iPhone App EXC_BREAKPOINT (SIGTRAP)

I recently released an application about a month ago, it was thoroughly tested by myself, my partner, and beta testers. Recently a user contacted me about the app not even being able to open (crashes after start up screen), they have the correct OS and they tried reinstalling. I asked for the crash log and they sent me it... Exception...

reading logs in google app engine

after launching your app on google app engine. you can use the 'logs' page in the admin console to see a how many requests were made, any http:// 404 errors etc. It's hard to make sense of how many visitors you really got and or others. Am I missing something here ? Can somebody tell me how to read logs on a google app engine. Many ...