logging

User access log to SQL Server

Greetings all, I need to get a log of user access to our SQL Server so I can track average and peak concurrency usage. Is there a hidden table or something I'm missing that has this information for me? To my knowledge the application I'm looking at does not track this at the application level. I'm currently working on SQL Server 2000, ...

Where should I put my log file for an asp.net application?

I have a asp.net application that we've written our own logging module for. My question is, where is the standard place to write a log file to? I.e. the website will be running as the anonymous user identity (e.g. IUSR on IIS7) and I need a place where I know it'll have permission to write to. Cheers,...

Instrumenting Database Access

Jeff mentioned in one of the podcasts that one of the things he always does is put in instrumentation for database calls, so that he can tell what queries are causing slowness etc. This is something I've measured in the past using SQL Profiler, but I'm interested in what strategies other people have used to include this as part of the a...

Off-the-Shelf C++ Hex Dump Code

I work a lot with network and serial communications software, so it is often necessary for me to have code to display or log hex dumps of data packets. Every time I do this, I write yet another hex-dump routine from scratch. I'm about to do so again, but figured I'd ask here: Is there any good free hex dump code for C++ out there some...

Which is a better approach in logging - files or DB?

Okay, here's the scenario. I have a utility that processes tons of records, and enters information to the Database accordingly. It works on these records in multi-threaded batches. Each such batch writes to the same log file for creating a workflow trace for each record. Potentially, we could be making close to a million log writes in a...

Giant NodeManagerLogs from hibernate in weblogic

One of our weblogic 8.1s has suddenly started logging giant amounts of logs and filling the disk. The logs giving us hassel resides in mydrive:\bea\weblogic81\common\nodemanager\NodeManagerLogs\generatedManagedServer1\managedserveroutput.log and the entries in the logfile is just the samekinds of entrires repeated again and again. S...

Java Logging vs Log4J

Hi there, is it still worth to add the log4j library to a Java 5 project just to log let's say some exceptions to a file with some nice rollover settings. Or will the standard util.logging facility do the job as well? What do you think? Thanks for sharing your thoughts! Okami ...

What logging is good logging for your app?

So we've discussed logging in passing at my place of work and I was wondering if some of you guys here could give me some ideas of your approaches? Typically our scenario is, no logging really at all, and mostly .NET apps, winforms/WPF clients talking through web services or direct to a db. So, the real question is, where or what would...

Logging in a PHP webapp

I want to keep logs of some things that people do in my app, in some cases so that it can be undone if needed. Is it best to store such logs in a file or a database? I'm completely at a loss as to what the pros and cons are except that it's another table to setup. Is there a third (or fourth etc) option that I'm not aware of that I sho...

Viewing event log via a web interface

I'd like to be able to view the event log for a series of asp.net websites running on IIS. Can I do this externally, for example, through a web interface? ...

Do C++ logging frameworks sacrifice reusability?

In C++, there isn't a de-facto standard logging tool. In my experience, shops roll their own. This creates a bit of a problem, however, when trying to create reusable software components. If everything in your system depends on the logging component, this makes the software less reusable, basically forcing any downstream projects to t...

What’s your logging philosophy?

As Jeff Atwood asked: "What’s your logging philosophy? Should all code be littered with .logthis() and .logthat() calls? Or do you inject logging after the fact somehow?" ...

Looking for a SQL Transaction Log file viewer

If any of you have worked with a cool tool for viewing/querying the SQL Transaction logs, please let me know. This should show all the transactional sql statements which are committed or rolled back. For Database files, if it has some additional graphical capabilities like showing the internal Binary Tree structure of the indexes, that ...

What's your favorite (free) log viewer for EntLib or Log4Net?

Currently we have Enterprise Library Logging going to the Event Log & a rolling flat file, but I'd like to implement database level logging so that I can have much better browsing/filtering/grouping ability. While I could write this by hand (and have, in fact, for log4net in the past) I though I'd ask the question: Are there any good l...

What is a good way to format logs?

I'm designing an application which includes the need to log all incoming messages I receive from a Telnet connection. The text is largely plain though can include ANSI tags that provide text colour and formatting (16 colours, bold, underline, etc). I'm would like to format my logs to store the text with formatting, date/time and potenti...

What is the point of clog?

I've been wondering, what is the point of clog? As near as I can tell, clog is the same as cerr but with buffering so it is more efficient. Usually stderr is the same as stdout, so clog is the same as cout. This seems pretty lame to me, so I figure I must be misunderstanding it. If I have log messages going out to the same place I have e...

How to log in T-SQL

I'm using ADO.NET to access SQL Server 2005 and would like to be able to log from inside the T-SQL stored procedures that I'm calling. Is that somehow possible? I'm unable to see output from the 'print'-statement when using ADO.NET and since I want to use logging just for debuging the ideal solution would be to emit messages to DebugVie...

track down file handle

I have a huge ear that uses log4j and there is a single config file that is used to set it up. In this config file there is no mention of certain log files but, additional files apart from those specified in the config file get generated in the logs folder. I've searched for other combinations of (logger|log4j|log).(properties|xml) and h...

Unhandled Exception Logging for Winforms

Is there anything like elmah for Winforms? I'm looking for a standard way to process unhandled exceptions and grab a screenshot and other environment information before packaging that up for support. ...

Which logging library is better?

I was wondering; which logging libraries for Delphi do you prefer? CodeSite SmartInspect Log4Delphi TraceFormat Please try to add a reasoning why you prefer one over the other if you've used more than one. I'll add suggestions to this question to keep things readable. ...