logging

Automatic logout in python web app

I have a web application in python wherein the user submits their email and password. These values are compared to values stored in a mysql database. If successful, the script generates a session id, stores it next to the email in the database and sets a cookie with the session id, with allows the user to interact with other parts of the...

Logging ODBC, SQL Server

How to log, trace or get queries that an application send to Microsoft SQL Server 2008 thru ODBC driver (without modifying application...) Maybe it can be done with SQL Server itself or ODBC has some query logging? ...

Is there a logging facade for the .NET world?

I'm somewhat new to the .NET stack and I was wondering if there is an equivalent to slf4j for the .NET platform. For me, logging to a Facade and being able to swap out logging implementations as needed just makes sense. Furthermore, the wrapper APIs available in slf4j have saved me many times when I needed to use a third-party library th...

.NET: Is it possible to log calls of .NET assembly methods?

Is it possible to log calls of .NET methods made while an application is running? ...

oracle display for every stored procedure the execution time

Hi all. I'm working on a stored procedure. Inside this one, there are many call to the other stored procedures. There are a bunch of them. I was wondering if there is a option to be able to have the execution time of every stored procedure involved, every function (with a start and end time, ior something like that). The idea is that ...

Does IIS write log information to a temporary file before /LogFiles folder?

I've noticed that on one of our production servers, IIS doesn't seem to immediately write to the log file where you would expect to see it. Is this because it writes the log information to a temporary location before sending it down to the proper location? ...

Advantage of log4j

What's the advantage of log4j over set System.out and System.err to output to a log file? ...

java.util.logging.Logger overrides data

java.util.logging.Logger override the file data instead of add to end of file. Is this correct? should I create 1 file for each time I initialize the app and the log system? If not, how do I set it to write to the end of the file? ...

Database solution for 200million writes/day, monthly summarization queries

Hello. I'm looking for help deciding on which database system to use. (I've been googling and reading for the past few hours; it now seems worthwhile to ask for help from someone with firsthand knowledge.) I need to log around 200 million rows (or more) per 8 hour workday to a database, then perform weekly/monthly/yearly summary queri...

syslog: on ubuntu, how to configure rotation and gzip'ing of syslog files?

how do you configure rotation of syslog log files on ubuntu? in my /etc/syslog.conf, i have this line: local1.* /var/log/log.txt over time, the following backup files have appeared: /var/log/log.txt.0.gz /var/log/log.txt.1.gz how do i configure how often these files get generated, and how to clean them out? ...

AppleScript Editor, write message to the "Result" window

I am using the Mac OS X Apple Script Editor and (while debugging) instead of writing a lot of display dialog statements, I'd like to write the results of some calculation in the window below, called "Result" (I have the German UI here, so the translation is a guess). So is there a write/print statement that I can use for putting messages...

Python logger dynamic filename

I want to configure my Python logger in such a way so that each instance of logger should log in a file having the same name as the name of the logger itself. e.g.: log_hm = logging.getLogger('healthmonitor') log_hm.info("Testing Log") # Should log to /some/path/healthmonitor.log log_sc = logging.getLogger('scripts') log_sc.debug("Tes...

Cakephp: how do I know what route was used

So I am a total cakephp newb and one of the first things I expected to see was basic info about each page request logged. More specifically, I need what route was used and as a result, what controller/method is called. Obviously I did not find what I was expecting and about the only kind of meaningful info I can find is from the apache l...

Where can I find project repositories with continuous testing?

I am interested in studying some test logs from different projects, in order to build and test an application for school. I need to analyze the parts of the code which are tested, the bugs which appeared in those parts and eventually how they were resolved. But for this I need some repositories from different (open source) projects. Ca...

Is it possible to log only one level messages with Log4J

If I set the log level to DEBUG, All messages with log level >= DEBUG will be logged/printed. But can I set log level to only DEBUG, such that messages with log level only with DEBUG will be printed. Or can give a range like print all messages whose log level is >=DEBUG but < ERROR? ...

How do you differentiate log4j sessions in a log file from copies of the same web-app?

There is only one file. And it is written simultaneously as web app copies run. How do you filter only one session log messages from other log lines? ...

Spring MVC: easiest way to see incoming requests

I am debugging a Spring MVC (3.0) app, deployed on tomcat. I want to see in my console or log files all the incoming requests. Including 404s, both generated by my app or by spring because it didn't find an appropriate controller. I'd like to see something like this: GET /index.html GET /img/logo.png GET /js/a.js GET /style/b.css POST...

Logging in a C# library

All, I wonder what is the best practise regarding logging inside a library. I am creating a C# library to be used by users and at some points I want to log an error or a warning. Is it a good practice to use log4net and log in a file? Thanks, M ...

Clientside error logging using Elmah

I'm using ELMAH to log my .net errors. It's working great, but I want to extend the error logging to include client side errors, i.e arbitrary JavaScript errors. I can capture the errors using window.onerror event and then call a .net handler (.ashx) to log the error in elmah, but this is just my little hack to solve the problem. Is ther...

Turn off LogEnabled Filter at run time - Logging Enterprise Application Block

Hi, so the story go like this: i'm using the Logging Enterprise Application block that provided by microsoft to log events in our application. The goal is to enabled event viewer logging at loading and then turn it off. What i did is to add EventLog TraceListener which write all our logs into the event viewer. What i'm trying to do ...