logging

Logging Search Keywords in Solr / Lucene

I'm new to Solr and am looking for a way to record searches (or keywords) to a log file or database so that I can then analyse for data visualisation. Can Solr do this already? Is this data accessible via. a Solr query? Thanks. Update 1 I'm starting to think I might need to write my own Solr analyzer? ...

Problem when using python logging in django and unicode

Hi there - totally confused by now... I am developing in python/django and using python logging. All of my app requires unicode and all my models have only a unicode()`, return u'..' methods implemented. Now when logging I have come upon a really strange issue that it took a long time to discover that I could reproduce it. I have tried b...

Log4Net & RollingFileAppender to generate Xml files

I've managed to configure Log4Net with a RollingFileAppender in order to generate Xml files. However, the generated files are not valid XML files until a "roll" is performed - the XML doesn't have a closing XML tag. Basically, this prevents to files from being read until that are "closed"/"rolled". Anyone else encountered this issue? ...

Baffled by Java Logging Systems with Spring and Hibernate

Hi Everyone WHen deploying my Spring / Hibernate application, I get the following warning related to logging: log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). log4j:WARN Please initialize the log4j system properly. Surprising to me was the lack of information from a Google / SO search...

Django: logging template errors

When I make an error in a django template {{placeholder}}, I get no error, just blank space in the output where I was expecting content. Is there a way to see something in my logs when this occurs, preferably using logging.warning or logging.error? ...

Logging to a file on Android

Is there any way of retrieving log messages from an Android handset. I'm building an application which uses the GPS of my HTC Hero. I can run and debug the application from eclipse but this isn't a good use case of GPS, sat at my desk. When I fire the app up when I am walking around, I get an intermittent exception. Is there anyway I c...

Programmatically Log/Tail Browser Activity with Ruby to a File?

How do I access this activity log information programmatically with Ruby (this is the Activity Window from Safari)? Can I use Mechanize to spit out all this information (duration, size, address, etc.) in XML, or is this already stored somewhere on my computer? ...

Loggers in GWT Client Side

Is there a way to report log messages in a Client-side GWT applications for development purposes (in Standard GWT libraries i.e. No external libraries)? i.e. like the Logger that can be used to output log messages to catalina.out when developing things for say Tomcat. ...

Is it possible to run one logrotate check manually?

Is it possible to run one iteration of logrotate manually without scheduling it on some interval? ...

Dynamically setting a log4net property using common.logging

Does anyone know if there is an equivalent in Common.Logging (for .Net) to set properties for the log4net factory adapter? I have had great success when just using log4net by doing: <appender name="FileAppender" type="log4net.Appender.RollingFileAppender"> <file type="log4net.Util.PatternString" value="logs\Log_%property{BrokerID}....

WCF logging messages

I have a WCF service (hosted by IIS webpage) that is working but I want to write more info out to a log file. I inherited code and it had some simple logging to a file. That worked on the original developers machine but I don't get anything written out. Note it reads the log file path from the config which I assume was the web config...

Jetty: how to disable logging?

I am trying to embed Jetty 6.1 in another program. Jetty is dumping INFO-log information and I need to turn it off. Is there a simple way to disable logging programmaticaly? ...

How can I access the Rails logger from an initializer?

Following the advice from my previous question, I placed my background process in an initializer named scheduler.rb. However, I'm having a hard time getting the newly-scheduled processes to log to the Rails logs. Is there a simple way for me to access the same logs from the initializer, preferably by accessing Rails' default logger metho...

Configuring Grails Access Logging from run-app

Since calling run-app uses the tomcat-plugin in grails, how do I modify the grails AccessLogValve in the server.xml when it does not exists? I only need this for development since in production I will just deploy the war to tomcat. Thanks In Advance ...

How can I see error logs of Django views

I'm coding a small application with Django. But I can't see any error logs in the console when an error (e.g. Python syntax error, etc.) occurs in one of my views -no action at all. How can I see the error logs of my views? Debugging like a blind is really annoying. ...

How to disable the debug logging of class using log4j?

In my log4j.xml, i am having <logger name="java.sql"> <level value="DEBUG" /> </logger> But using this, it also enables the logging for the interface Resultset. If i want to disable the logging for this interface but still want to have the debug logging for statement, preparedstatement, etc... How can i do this? ...

Automatic Log when entering and exiting functions (Log4Net)

Hi, I'm using log4net in my application (.net 4 framework). is there any way to configure it in shuch way that every function call will be logged (without adding manually logging call in the begining of the function) Thanks. ...

log4j sample configuration file (properties file)

What is the easiest way to get started with log4j configuration? ...

Log4Net Logging Exceptions

Hi guys I know I can log exceptions to the database using Log4Net, but I want to break up what it stores for an exception into different columns. Does anyone know if this is available, if anyone has done this or is it just easier to log exceptions to the database manually? Cheers Anthony UPDATE: If it helps maybe use the followin...

logging incoming traffic from google Sponsored Links clicks

hello to all, a client asked me to write a script that will log visitors reaching hs site via google adds (Sponsored Links). the idea is to keep track of: 1.users' ip 2. what add they clicked 3. what key words they submitted in the Google search that led the them to the result page in which that add was displayed i will attempt that in...