logging

JBoss AS 6 Logging Patterns

In the deployment directory of JBoss 6, there is jboss-logging.xml: The FILE appender has following pattern: <pattern-formatter pattern="%d %-5p [%c] (%t:%x) %s%E%n"/> This outputs something as follows: 2010-08-02 17:41:43,845 INFO [STDOUT] (http-127.0.0.1-8080-1:) 2010-08-02 17:41:43,844 INFO [http-127.0.0.1-8080-1] (XyzPageCon...

How do I prevent my logger from writing multiple instances of a log file?

I wrote a custom logger where the only addition is the following method: public static synchronized Logger getLogger(String name) { try { boolean append = true; FileHandler handler = new FileHandler("tmp.log", append); Logger log = Logger.getLogger(name); log.addHandler(handler); retu...

What is the best web based log viewer that is free / open source

On Windows and .Net 4.0 What is the best web based log viewer that is free / open source. ...

Glassfish logging to multiple .log files

We have Glassfish v2 server and some modules there: EJBs, web-apps, etc... We need logging from different modules goes to different log files, the same way like Tomcat or other app server allowed to do. Glassfish forced us to use its own logging system with all logs in single server.log and viewed with admin console. It may be a good...

Add additional appenders with NServiceBus Generic Host

Can anyone point me in the right direction here. Is it possible to have separate log4net config files for each profile? In that way I could have a production.log4net.config and a lite.log4net.config? It would be even more cool if that configuration was on top of the programmatic configuration already build into the generic host. ...

How do I silence the delayed_job output in test?

I am using delayed_job for background tasks such as system e-mails and different timed events. I use Delayed::Worker.new.work_off to work off the events in my RSpec tests, but then the test out put gets littered with sh*t like: [Worker(host:ch.local pid:24307)] RPM Monitoring DJ worker host:ch.local pid:24307 [Worker(host:ch.local pid...

java.util.logging message template question

NetBeans recommended that I change the way that logging statements that have string concatenation are written, stating Convert string concatenation to a message template so that a statement such as: log.severe("Completed at: " + new Date()); got changed to log.log(Level.SEVERE, "Completed at: {0}", new Date()); The problem is tha...

When log4net write messages in to database?

I have asp.net application and log4net which configured for write logging messages in to msssql. But when i start my application messages doesnt writing in to db. Only when i change my source code file and restart application all message write in to database with right time stamp. Why? Sorry for my bad english. ...

Paranoia, excessive logging and exception handling on simple scripts dealing with files. Is this normal?

I find myself using python for a lot of file management scripts as the one below. While looking for examples on the net I am surprised about how little logging and exception handling is featured on the examples. Every time I write a new script my intention is not to end up as the one below but if it deals with files then no matter what m...

log4net: Custom PatternLayoutConverter not being called

Situation: I want to show the method and line number for the code that logs a message. The problem is that I have an intermediate class which calls into the log4net logger. Unfortunately, due to existing architectural issues, I can't do away with this intermediate class. The result is that I always see the method and line number as be...

Efficiently store easily parsable data in a file?

I am needing to store easily parsable data in a file as an alternative to the database backed solution (not up for debate). Since its going to be storing lots of data, preferably it would be a lightweight syntax. This does not necessarily need to be human readable, but should be parsable. Note that there are going to be multiple types of...

Enable Hibernate "show_sql" for a Nuxeo installation

I want to see why my Nuxeo installation is failing when I point its SQL user directory to other database (Oracle says: table/view doesn't exists). I want to enable show_sql Hibernate parameter to see the sql in the console.. but I don't know where I can do it (if I can). ...

How to 'activate' SLF4J logging in JBoss6 AS

Given: JBoss 6 Application Server M3 $ ls -la $JBOSS_HOME/common/lib/slf4j-* -rwx------+ common/lib/slf4j-api.jar -rwx------+ common/lib/slf4j-jboss-logmanager.jar I believe that the above libs provide the bridge between SLF4J and the JBoss Logging system. My Web application relies on SLF4J for logging. Though, I don't package any ...

How to tail -f the latest log file with a given pattern

Hello, I work with some log system which creates a log file every hour, like follows: SoftwareLog.2010-08-01-08 SoftwareLog.2010-08-01-09 SoftwareLog.2010-08-01-10 I'm trying to tail to follow the latest log file giving a pattern (e.g. SoftwareLog*) and I realize there's: tail -F (tail --follow=name --retry) but that only follow o...

How to log to multiple files with JDK Logging properties file with a workaround?

Hello, I know Log4j does this but I am not allowed to add this dependency again. I want to log to two different files from the same logging.properties What is the simplest log file that will accomplish this assuming that: FileHandler is java.util.logging.FileHandler com.package is one package com.diffpackage is another package FileHa...

How to embed app with log4cocoa?

Hi, Guys. I'm having some trouble to embed my application with the log4cocoa framework.I've embed frameworks in my application before with no trouble, but I cannot fix this one. First of all, this is my system out: dyld: Library not loaded: @loader_path/Frameworks/Log4Cocoa.framework/Versions/A/Log4Cocoa Referenced from: /Users/lean...

SLF4J logger.debug() does not get logged in JBoss 6

Context: JBoss Application Server 6 I am relying on slf4j-jboss-logmanager.jar to bind slf4j to the JBoss log manager. All logger.info() output is correctly logged. However, logger.debug() output never appears in the log stream. Even though jboss-logging.xml has set the level to DEBUG for the CONSOLE logger... <console-handler n...

Is it possible to embed Log4Fx LogPanel inside a Flex Application?

I've been investigating logging in Flex, and I really like what I see in Log4Fx. Their runtime log view in Eclipse is great -- and I've been able to add it to one of my views: <mx:Application layout="vertical" minHeight="600" minWidth="955" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:view=...

VS2010: minimal build log in output and detailed log in log file.

In Visual Studio 2010 we have under 'tools|options|projects and solutions|build and run' (couldn't find a correct image on the internet) two options for the logging of MSBuild: 'MSBuild project build output verbosity' and 'MSBuild project build log verbosity'. So I was hoping to be able to get a minimal build log in the output view wit...

Not to log to catalina.out

I have the following logging.properties configuration: 1catalina.org.apache.juli.FileHandler.level = FINE 1catalina.org.apache.juli.FileHandler.directory = /mnt/asd/tomcat_logs 1catalina.org.apache.juli.FileHandler.prefix = catalina. 2localhost.org.apache.juli.FileHandler.level = FINE 2localhost.org.apache.juli.FileHandler.directory = ...