logging

log in asp.net mvc

In my mvc application i need to check a condition in action and throw it to the log. How can i add a info to log info. ...

Set logging level at handler or logger?

I'm using the Java Logger for the first time and noticed it is possible to set the logging level either through handler.setLevel(...) or through logger.setLevel(...). I can't seem to find a difference though. Is there a difference? And if there is, what is the recommended way to do it? ...

Adding Timestamp to Java's GC messages in Tomcat 6

I turned on Java's GC log options -XX:+PrintGC -XX:+PrintGCTimeStamps -XX:+PrintGCDetails Which print out these messages to standard output (catalina.out): 314.884: [CMS-concurrent-mark-start] 315.014: [CMS-concurrent-mark: 0.129/0.129 secs] [Times: user=0.14 sys=0.00, real=0.13 secs] 315.014: [CMS-concurrent-preclean-start] 315.0...

Grails 1.1.1 log4j DSL throws MissingMethodException for PatternLayout configuration

I've upgraded a Grails 1.0.3 app to Grails 1.1.1. I've upgraded the log4j configuration in Config.groovy to conform to the new DSL. However, after defining a ConsoleAppender with a PatternLayout, the application won't start, and instead throws a MissingMethodException with the message: groovy.lang.MissingMethodException: No signature of...

What is mkmf.log and why does it keep showing up in my app root?

Have an app that uses git for version control. A file called mkmf.log keeps showing up in the app root, somewhat randomly. What is it? It contains: find_executable: checking for git... -------------------- yes -------------------- Relevant info from ls: $ ls -lah | grep mk -rw-r--r--@ 1 kyle staff 85B Dec 2 15:44 mkmf.log ...

"Live" Changelogging for CVS-Comments?

Hello, My problem is that i often forgot what i have changed in my software, when i do a cvs-check in. So i have to lookup my code for changes. If this could be automated, it would be great. So can anyone tell me if there is a tool or something which can lookup my code (i'm using c#) for specific comments, that i add if i change someth...

python web app logging through pipe? (performance concerned)

I'm writing a web app using python with web.py, and I want to implement my own logging system. I'd like to log detailed information about each request that come to python (static files are handled by web servers). Currently I'm thinking about writing the logs to a pipe. On the other side, there should be cronolog. My main concern is th...

How to configure log4j to log different log levels to different files for the same logger

I have a normal INFO level log for application. What I need is to additionally log all ERROR level events to separate error log. I am using configuration like this: <logger name="com.acme"> <level value="error"/> <appender-ref ref="error"/> </logger> <logger name="com.acme"> <level value="info"/> </logger> <root> <level value=...

Log session and session changes of a asp.net web user

This is going to be a quite broad question, and any suggestions, examples, links are very welcome! I'm looking for a good way to log my users session, and actions on the site up to a certain point. The site in question is a site for doing bookings. The users start with doing a search, doing a few steps of data gathering and selections...

is there any cause for concern using log4net with .NET 3.5 and later

I have read this page and noticed that .NET 3.5 is not specifically listed. Is this cause for concern? ...

log4net and ints

Hi, I have been working a bit with log4net and have been inserting extra fields, but I have problems with adding int fields. Could anyone show a configuration where an int is used, since I have not been able to find it on their homepage. I normally just use a configuration like: <parameter> <parameterName value="@orderid" /> ...

Audit Logging in SharePoint MOSS

Hi We want to be able to view an audit of changes to groups/members/user profiles within MOSS. Can we do this out of the box or would we need a 3rd party tool? Is everything within MOSS audited somewhere or just certain aspects of it? All the best ...

How to best output large single line XML file (with Java/Eclipse)?

We have a process that outputs the contents of a large XML file to System.out. When this output is pretty printed (ie: multiple lines) everything works. But when it's on one line Eclipse crashes with an OutOfMemory error. Any ideas how to prevent this? ...

best practices for logging in ASP.net MVC?

What's the best way to log in ASP.net MVC? I mean any event, I'm currently using NLog but I know there are a lot of possible ways to do it. ...

Reliable(durable) distributed logging engine

Trying to find a commercial logging framework for distributed systems. This framework must allow .NET applications on a Remote Server to log messages which can then be collected in a Central Location. If possible the Central Location should store messages in a SQL Server database. Requirements: Be able to initiate the logging of messa...

Django logging with user/ip

Hello I am using the "logging" module to log a very large amount of messages. I would like to add "user" (request.user) to the log. But while it is available in the view function, I don't want to pass it to all helpers. Does anyone know a way to this ? [I was thinking of maybe somehow walking the trace until I find a function with "req...

Is it possible to set up two FileHandlers in the same logging.properties file?

Using the logging classes in java.util.logging, is it possible to set up two different FileHandlers with different formatters that will write different logging information to two different files? I'm currently using a logging.properties file, and the handlers line is not encouraging: handlers = java.util.logging.ConsoleHandler, java.ut...

Singleton Logger in Java that can log which class the log method came from and log to multiple areas/machienes

I would like to do this using java.util.logging if possible, any ideas? thanks. ...

java.util.logging.config

Is there a way to set the location of the properties file withough specifying a JVM param such as -Djava.util.logging.config.file=log.properties ? ...

adding date to Java util logger fileHandler name

Hi I currently have this in my .properties file: java.util.logging.FileHandler.pattern = %h/programName%u%g.log I would also like to append a timestamp / username to this so its easy to identify log files does anyone know how? ...