logging

Java - Logging and tracing

Hi , How do i enable and use logging and tracing in my java program? Thanks, magggi ...

How to make sure that Tomcat6 reads CATALINA_OPTS on Windows?

Hi all, I have a Tomcat6 running on a Windows2003 machine. I deployed 2 Grails apps on this server and I soon noticed that everything was crashing sometime after the deploy with a classic PermGen error. java.lang.OutOfMemoryError: PermGen space java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClassCond(Cla...

Does Oracle log package reading from IDEs?

I need to know if somebody can read and save to oneself packages from my database, Oracle specifically. Can I prevent it? I mostly worry about tools like "Export schema" of Toad. How can I know somebody didn't something like exporting my database structure? ...

How to send logcat via email?

Is there any library out there that allows me to receive logs from the app via email? ...

How to write caller location information in a log file using Java, without hurting performance?

Hi folks. How can I write caller location information (Java source file and line), in a log file using Java and log4j, but without hurting performance? log4j allow you to write such information in the log file, but it uses the stack trace to get that it information, every time a log statement is issued, what causes performance degradatio...

metrics in ASP.NET application

I need to add some metrics and statistics capabilities in ASP.NET application (Framework 2.0, SQL Server 2005). It's Intranet application, so I can't use Google Analytics. I need not only measure number of hits and visits, but also which buttons people are pressing and which functions of application are using. Will it be enough to use ...

C++ event library

can you recommend lightweight cross-platform event recording/log library with the following features: simple interface Incremental event recording (i.e. event++) fast update customizable report out put (for example iostream) timestamps or os integration is not important in principle it is not hard to make yourself one using map with ...

Logging to files or to event viewer?

Hi, I was wondering what is the 'correct' way to log information messages; to files, or to a special log in the event viewer? I like logging to files since I can use rolling flat file listener and see fresh new log from each day, plus in the event viewer I can only see one message at a time - where in a file I can scan through the day m...

Logging in DBCP

I'm using Apache Commons DBCP. There is a task to track the inner behavior of the DBCP - number of active and idle connections. I found out that DBCP lacks any such logging at all. Yes, tt is possible to write the code that outputs the status of the BasicDataSource when connection is borrowed from the pool. However there is no way to t...

Adding program arguments to C

How can I load the batch file console to my C console? I know in batch The command is Showme.bat /B and it'll load the console into whatever console you called that file from. What would that be in C? ShellExecute(NULL,"open","Showme.bat",NULL,NULL,SW_SHOW); Also, doing that... How could I also add additional arguments such as >>...

How to organize updated row logging

Hello, I have some tables in Sql Server. I want to log row, if row is updated or deleted. how can I organize this process? Sample table structure: [uniqueGUID] [uniqueidentifier] NOT NULL, *[kod_a] [nchar](5) NOT NULL, *[kod_b] [nchar](5) NOT NULL, *[kod_c] [nchar](2) NOT NULL, *[kod_d] [nchar](4) NOT NULL, [nam...

How to enable WCF message logging from code instead of the application configuration file.

I am communicating between two processes using WCF. By default this produces very obscure and simple error messages when something goes wrong which are not very helpful. On http://msdn.microsoft.com/en-us/library/aa702726.aspx I found out how I can enable more detailed logging. Unfortunately this seems rather static. I would like to do ...

Scribe, Flume and Chukwa - what are alternatives?

Hello, I would like to learn about alternatives to those projects, especially designed to aggregate data from logs from multiple nodes (>500) and designed for low memory/cpu usage. I'm familiar with scribe, flume and chukwa and I think that they use too much resources (JRE, many libraries). All comments and recommendations about aggre...

Why eclipse plugin doesnt start - log ?

I have plugin that doesnt start(from dropins, with eclipse -clean), however its not even mentioned in workspace\.metadata\.log Is there any log that says why plugin doesnt start? I think the problem is that too new API is used. ...

How can you write log files in Objective C?

If I'm doing mass operations inside objective C, and a lot happens in the console... I cannot see it all happen in windows. Instead of adding the argument ">>WriteLog.log" what would the proper way to log the console inside of Objective C? ...

Append only file

Hello, I'm trying to realize a file. Each event just appends one line to the file. So far this is a no brainer. The hard part is that several users are supposed to be able to add entries to that file but no one is supposed to be able to modify or delete existing ones. Can I somehow enforce this using file access rights? I'm using Linux....

Get collections of diffs

Hello, I have project on github.com. All summer i made commits. Now i need to get all pathes. I know that i can: git log -p > project.path But this variant write all pathes in one file. How can i make: I have 3 files in github repository: test.c test1.c test2.c How can i get 3 files with all pathes? test.diff test1.diff test2...

Crashing the logging formatter?

I have a logging component in my program. The setup of the formatter is straightforward: sh.setFormatter(logging.Formatter("%(asctime)s - %(message)s")) I notice that my program is having problems. After a certain point, the formatter reverts to the default configuration (i.e., ignores the formatting I supplied). On closer inspecti...

Quickest way to write logging/stats data - file, database or url to external service

Hi, I am running a high volume web service and want to track the number of times the service gets called (per customer). However, I want the logging/writing of this data to have minimal impact on the overall time taken to process the service request. I have thought of three ways: Write to file (would need to open the file, read the 'h...

Can I leave logging in Release builds?

I've read this question which advocates taking NSLog statements out of Release builds. Is it acceptable to, instead of cluttering the main log up with junk, write it to Apple System Log instead, then it'd be hidden from the main log? Or am I just overcomplicating things? Are there any instances where logging has been useful to you in p...