logging

python logging.basicConfig

I have seen this in a lot of python code what does this do? What is it useful for? logging.basicConfig(level=loglevel,format=myname) Please and thank you. ...

How to get HSQLDB to emit error messages during initialization of a datasource from a .script file?

I am working on a Java application that will use some Hibernate (annotated by JPA) classes, backed by a HSQLDB datasource (DBCP BasicDataSource). I am trying to manually tweak the HSQLDB ".script" file (which I can't for the life of me find the authoritative name for by web searching/reading the docs; it's only mentioned in passing) to ...

ssh session logging

I observed (CentOS) that the SSH sessions are getting logged with respective file names in the folder /var/log/sessions/ Is it a default behaviour? If no, how to enable it? ...

Logger application for c# console application

I'm designing a console application for the first time in my career. This console application is an engine which will do a task every night at particular time. I'm going to schedule this application using windows task scheduler. Now I need to log every step in this task. I'm not sure what logger best suits for this kind of application. ...

Configuring log4Cocoa

Hello. Im trying to configure the log4cocoa framework to log as DEBUG level messages to the console and INFO level to some file.I cant figure out how it's done. I have not found any documentation about it, what make things even harder. This is an example of configuration I`ve tried (not working): log4cocoa.rootLogger=DEBUG,A1 log4coc...

Programmatically access Enterprise Library Logging configuration (object model)?

I'm using Enterprise Library 3.1 and want to programmatically access the Logging Block (runtime, object model) specifically its Trace Listeners and Sources. For example, I want to access the Filename property of a trace listener object so I can know where the log file is located on disk. Update: Looking for answers that use the runti...

Do you do client-side logging?

How do you capture errors that happen on client side when building RIA apps using Flex and Silverlight? What are the common practices? I have seen some asynch js calls to a web service implemented but would like to know how the community is dealing with it. ...

MySQL create time and update time timestamp

I am creating some tables where I want to store the time when a record was created and when it was last updated. I thought I could have two timestamp fields where one would have the value CURRENT_TIMESTAMP and the other would have CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP. But I guess I can't do this because you can have only 1 times...

Best practices in logging the station that did something

I've seen too many incidents of someone having a password they shouldn't have. Thus I want to log the station from where the command came as well as who was logged in at the time. What is the best way to log the machine identity? I was thinking the MAC address except there can be multiple such addresses on a machine. IP won't work be...

There is no catalina.out

Hi folks, I have no idea, how and what to set up, to have catalina.out on the Tomcat on my computer. I use Tomcat 6.0.28, zipped-version on Windows XP. To start server I just run startup.bat-file. Do I do something wrong?! Thanks in advance for any advices. Mur [Edited] All records (Exceptions or System.out) will be written in cons...

How to implement/use log4j?

I am soon going to use log4j class using Java, for a project, to create logs. But i dont think i know or have any slightest idea about it. Hope someone enlightens me over this, but, trivial issue. ...

Why doesn't my TimedRotatingFileHandler rotate at midnight?

This is my config file: [loggers] keys=root [handlers] keys=TimedRotatingFileHandler [formatters] keys=simpleFormatter [logger_root] level=DEBUG handlers=TimedRotatingFileHandler [handler_TimedRotatingFileHandler] class=handlers.TimedRotatingFileHandler level=DEBUG formatter=simpleFormatter args=('driver.log', 'midnight', 1, 30) [f...

Logging OSGi via JMX or other way

Hello everybody, I’m a beginner with the technologies OSGi and JMX, so I have some questions and I hope to have answers. I want to recover the OSGi Log object for display logs on my console eclipse and then display them on a jsp page. Haw can I access to Log OSGi bundle via the JMX’ Object MBeanServerConnection? Haw can I have LogEn...

rack duplicates every log message

When I test a Sinatra app on my local box with rackup, every log message appears twice. How can I get them to appear only once? ...

Is it good design to create a module-wide logger in python?

When coding python, I use the logging module a lot. After some bad experiences and reading articles like this one, I try to prevent import-time executed code wherever possible. However, for the sake of simplicity, I tend to get my logging object right at the beginning of the module file: # -*- coding: utf-8 -*- import logging logger =...

Can someone recommend a good unix syslog *client* library for java?

java.util.logging.Logger seems to implement "syslog-like" logging, where I want the logs to actually use the local syslog logging fascilities (so life is easier for admins; they don't have to do extra log rotation, etc.). Anyone have any recommendations? I saw that log4j (http://logging.apache.org/log4j/1.2) claimed they had syslog sup...

python log manager

Hello I have several python programs that runs in parallel. I want to write a python program which will manage the programs logs, which mean that the other programs will sent log message to this program and the program will write it to the log file. Another important feature is that if one of the programs will crash, the 'manage log prog...

Problems with jetty crashing intermittently

Hi, I'm having problems with jetty crashing intermittently, I'm using Jetty 6.1.24. I'm running a neo4j Spring MVC webapp, Jetty will stay running for approx 1 hour and then I have to restart Jetty. It is running on small amazon ec2 instance, debian with 1.7gb of RAM. I start Jetty using java -Xmx900m -server -jar start.jar I am conn...

Experience using Boost.Log logging library?

I am considering starting to use the Boost.Log logging library. Is anyone using Boost.Log? Please share your experiences in this regard. The other libraries I am considering are Apache log4cxx (it seems tedious to install but my team mates want something simple to get started) and Pantheios (the same problem since it works with extra fr...

Why does python libs (eg imaplib) does not use logging but use sys.stderr.write ?

I'm not sure if it's because sys.stderr.write is faster. ...