logging

How do you log to Firebug from an extension?

I'm writing an extension for Firefox, and I need to log some data to Firebug's console. Within the scope of my addon, "console" is undefined, and "window.content.console" is also undefined. So how do I log to the console? ...

Writing Exceptions to the Windows Log File

I'd like to catch my exceptions and log them in the Windows log file. How do I go about opening and writing to the Windows log? ...

How would I log searches on my PHP/MySQL website?

When someone searches my website using a quick search feature I would like to log this into my database Obviously I want to see what my users are searching for I can create a 'tag cloud' based on these searches I have a table searchterms at the moment with two fields: id and terms, I was wondering if this was the best method of loggi...

Good, free Delphi logging framework

Hi, can anybody hint me a good, free Delphi logging framework? It should be easy to use and it should support different "log writers" including plain text, database and network. ...

Turn off tomcat logging

I want to turn off tomcat's logs jvm.stderr and jvm.stdout which have been set in the wrapper.properties, I've commented these lines out but that just redirects the logs to be written to the root tomcat folder. The reason for turning them off is that these logs do not seem to have any sort of size control so I have a situation where th...

What is the Visual Studio Development Server equivalent of the Apache Access Log?

Coming from a PHP/Apache background I'm looking for the equivalent of the Access Log when I'm developing ASP.NET MVC applications in Visual Studio 2008. On the Unix box I'm used to tailing the access_log to get an real time view of which requests is send to the web server: tail -f access_log I'm currently looking into ASP.NET Traces. ...

C#: tail like program for text file

Hi, I have a log file that continually logs short lines. I need to develop a service that reacts (or polls, or listens to) to new lines added to that file, a sort of unix' tail program, so that my service is always up to date reguarding the file. I don't think that opening a read stream and keeping it opened is a good idea. Maybe I sho...

Best way of logging in SSIS

There are 5 different types of logging in SSIS Event Log Text File XML File SQL Server SQL Server Profiler I am in a production environment where developers do not have access to production systems. Which logging method should be my poison of choice, and why? ...

Observing or monitoring users working with an application remotely

I'm a believer in observing what users are doing with an application. I think that it is the only way to get an accurate picture of what people are doing. However, I don't always want to be sitting with them and peering over their shoulder; apart from the time burden it is a distracting for them and may also change their behaviour. What...

Getting new lines from a file with FileSystemWatcher

Hi, I'm watching a file with the following code: [..] FileSystemWatcher watcher = new FileSystemWatcher(); watcher.Path = @"C:\"; watcher.Filter = "t.log"; watcher.Changed += new FileSystemEventHandler(watcher_Changed); watcher.EnableRaisingEvents = true; private static void watc...

When, why, and what should one use a logger for?

Tell me about loggers and logging! Point me in the right direction so I can learn more. Edit: Id like to know more about logging application events for debugging purposes. While the commented link to 'Logging Best Practices' is helpful, the information there is a bit over my head as it assumes previous knowledge about logging. ...

Django and fcgi - logging question

I have a site running in Django. Frontend is lighttpd and is using fcgi to host django. I start my fcgi processes as follows: python2.6 /<snip>/manage.py runfcgi maxrequests=10 host=127.0.0.1 port=8000 pidfile=django.pid For logging, I have a RotatingFileHandler defined as follows: file_handler = RotatingFileHandler(filename, maxByt...

How do I log the frequency and last-used time for a stored procedure?

I want to know how often a set of stored procedures run, and the last time they were used. I am thinking of adding calls to the top of every stored procedure in the database to insert/update a table, with the following schema: SprocName ExecCount LastExec ---------------------------------- GetCompany 434 2009-03-02 Expor...

Log4J rerouting of Log Events

I would like to build an Appender (or something similar) that inspects Events and on certain conditions creates logs new Events. An example would be and Escalating Appender that checks if a certain amount of identical Events get logged and if so logs the Event with a higher logleve. So you could define something like: If you get more th...

Logging webpage views by user

I have an ASP.NET site I've inherited where all page views are logged to a database. Currently we store sessionguid, page, querystring and timestamp. We generally keep it at about 100M rows before purging. Certain users have access to pageview reports and it often times out. Other than doing an index analysis, any other tips on how to be...

Log usage of database tables, functions, stored procedures, views etc

I work on a system that is based on a SQL server database that has a lot of years of development on it. It is not huge in data volume (a few GB) but it has a lot of complexity (hundreds of tables, hundreds of stored procedures). I want to start by cleaning out the stuff that isn't used any more. We have a weekly/monthly/quarterly/annual...

Singleton logger, static logger, factory logger... how to log?

I am wrapping the patterns & practices Enterprise Library Logging Application Block for an application written in .NET. I want to be able to subclass a logger (i.e to provide domain specific logging). What is the best way to do this? For e.g, I have a static Logger class at the moment, but this does not allow me to specialize it for d...

enterprise library 2 and 3.1 side by side

We want to use the Enterprise Library 3.1 for logging into the eventlog, but our sub contractor uses EL 2.0 for similar purposes. Since we all run under a common executable, all the configuration data should be in the same .config file. Is there a way to put in config sections for logging under 2.0 and under 3.1 in the same config file? ...

Setting java.util.logging destination programmatically

I'm using java.util.logging for logging and tracing purposes. How can I within a Java application dynamically set the file to which the log should be written. ...

Security Issues Writing to Event Log with My.Application.Log.WriteException

I'm handling the Application.UnhandledException event in a WinForms app and need to log exceptions caught there. My app.config is set up to log exceptions to a FileLog and an EventLog. The problem is that when running as a non-admin user, the EventLog cannot be written to because of a SecurityException - I get the message "The source wa...