logging

Generic import/merge logging preprocessing framework

We write reporting software. we want to do imports of data, when the user imports data we need to do a pre-process phase and display an overview of the impact the import will have. then the user will be able to choose actions based on this pre-processing phase that will determine how the actual import will proceed. usually in a situatio...

log4net logging from web app

I have a framework library which would do a lot of thing including logging. We are using log4net for logging. This framework has the static logging class LogManager, a static instance of ILog (logger) and static methods for logging INFO,WARNING,DEBUG etc. the static instance logger is getting initialized like this public static class...

Python logging before you run logging.basicConfig?

It appears that if you invoke logging.info() BEFORE you run logging.basicConfig, the logging.basicConfig call doesn't have any effect. In fact, no logging occurs. Where is this behavior documented? I don't really understand. ...

ASP.Net User activity tracking in database

This is about a simple yet efficient activity logging framework that I want to integrate with my existing ASP.Net based web-app (I've a LINQ-to-SQL based SQL DB as backend). I'm using something like a service-architecture to perform DB operations - that is invoke relevant LINQ operations. I've a service class for almost every entity (i.e...

log4net logger configuration

Is it possible to set the logger from configuration. I have a web app using a framework. The framework is extensible and has the logger. When I log, currently, the logger is set to the framework class. Is it possible that I can configure my web app and set the logger for the web app to loggerForWebApp and the logger for a console app (...

Security vulnerabilities in php fwrite?

Hi All, I recently transitioned my companies website over to our in-house servers (Apache) from a hosting companies (IIS). The group that originally built the site did a piss poor job and the entire thing was a mess to migrate. While the move went fairly smoothly, looking at the error_log there are still some missing pages. Rather ...

Is there a Java 1.5 varargs API for slf4j yet?

I want to get rid of this lot... public void info(String msg); public void info(String format, Object arg); public void info(String format, Object arg1, Object arg2); public void info(String format, Object[] argArray); ...and replace it with this one... public void info(String format, Object ... args); ...so that my logging syntax ...

How to prevent duplicate logging with syslog-ng

I'm getting log messages written to multiple files. Apache log messages are caught by a custom filter I've added (because I'd like them in their own set of files) - but the user filter also catches those messages and writes the to a user.x.log. I'd like the user filter to catch anything that isn't being logged elsewhere. Do I need to w...

How to externally configure logging in a Flex app?

Hi, I was wondering what people are using for externally configuring logging in a Flex app. Are there any ready baked solutions out there, similar to Log4J's configuration via properties files for instance? If there are, do these work directly with the Flex logging API or are they part of a separate logging library? ...

logging in ruby

I'm searching for a logging framework for Ruby. Are there any advantages of log4r over the standard Logger class? ...

EC2 and login logging

Hello - I have set up several EC2 instances and intend to give multiple users access to them via SSH. Is there any file on the server that monitors who logs in and when? Any help greatly appreciated. Max. ...

create a database with scala/lift and a simple interface to log in

Hi, I'm a beginner with scala/lift and POO. At first, i would like to create a database and a simple interface to log in (ID and password). Then create an application to allow the user to modify this database. My problem is: i didn't find anything (like a tutorial) to do something like that. Maybe somebody could help? ...

Separate logger name for each application instance

My python application consists of main program and several modules. Each module contains import logging log = logging.getLogger('myapp.mymodule') on global level. Handlers and other stuff initialized in main program, and typically all messages forwarded to syslog. Now I want to launch multiple instances of application (configuration ...

Read environment variables from logback configuration file

Hi, I have this logback.xml file: <configuration debug="true" scan="true" scanPeriod="60 seconds"> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <layout class="ch.qos.logback.classic.PatternLayout"> <Pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</Pattern> </layout> </appender...

To Log Or To Not Log?

I'm now building a program that is a eBook manager, reader, organizer and publisher, that is also a eBook transfer(to eReaders like Kindle), but I was developing it and a question have poped-up on my mind: "Log or not?" Then I started to think about logging. As many programs log actions, I started to seek for they and see how they log t...

Microsoft Enterprise Logging Application Block - Reading Log File

Hi, I'm using MS log application block for logging my application event into a file called app-trace.log which located on the c:\temp folder. I'm trying to find the best way to read this file at runtime and display it when the user asks for it. now i have 2 issues: it seems that this kind of feature is not supported by the framework,...

How do I capture the output of a user defined service into a logfile, without programming?

I'm creating a service using the sc.exe command in windows xp I want to save the STDOUT messages to svc.datetime.log How do I do this? I'm using a batch file as a wrapper to an executable. No heavy lifting or .NET ...

real-time data warehouse for web access logs

We're thinking about putting up a data warehouse system to load with web access logs that our web servers generate. The idea is to load the data in real-time. To the user we want to present a line graph of the data and enable the user to drill down using the dimensions. The question is how to balance and design the system so that ; (...

Send JNI C stderr/stdout through log4j

My java app uses JNI to invoke a library written in C. This native library logs errors to stderr but I would like to redirect the error stream through my log4j logger somehow. Is this possible? The C library is external - I don't have the source, so cannot change it. Thanks ...

How do I make a log of my application?

How can I make a log of my application? Like maybe when an error is catched, it emails the user a log file? Maybe something like this? ...