logging

Logging on device to file

How to redirect logging on device to file? My application is hang on device but works great on emulator - I want to see logging on my device without sdk and its tools. ...

Good resources for learning how to build a solid logging/debuging infrastructure for .Net MVC web sites/apps

Hello! I was wondering if someone could point me towards some good resources for learning how to build a solid logging/(remote) debugging infrastructure for .Net MVC web sites/apps to gather info for when things go bad. I know SO was built using .Net MVC and I wish I could pick Atwoods brain for even an hour because I bet he had some i...

What does a database log keep track of?

Hey, I'm quite new to SQL Server and was wondering what the difference between the SQL Server log is and a custom log (in my case, using log4net)? I guess there's more choice on what to log using log4net, but what things are automatically logged by the database? For example, if a user signs up to my site, would I have to manually log t...

Does ruby have a log viewer?

Is there a log viewer for displaying Ruby log files from any of its loggers (be it l4r or their basic logger)? Some kind of gui app that opens a log file and can support simple queries such as INFO only? ...

How to add a custom log level to logger in ruby?

I need to add a custom log level like "verbose" or "traffic" to ruby logger, how to do? ...

Automatically adding Enter/Exit Function Logs to a Project

I have a 3rd party source code that I have to investigate. I want to see in what order the functions are called but I don't want to waste my time typing: printf("Entered into %s", __FUNCTION__) and printf("Exited from %s", __FUNCTION__) for each function, nor do I want to touch any source file. Do you have any suggestions? Is ther...

How do I suppress the 'Returning cached instance of singleton bean' logging message in Spring/Java?

How do I suppress the 'Returning cached instance of singleton bean' logging message in Spring/Java? Is there a good reference for this somewhere? Thanks. ...

How to log the request mod_proxy makes through a reverse proxy

I'm can't figure out why I cannot get the reverse proxy for a particular (remote) website to work. (nb: the reverse proxy works for a number of other websites). I can access static files on that website through the proxy, but for some reason the homepage and other pages give a 404, "the page that you were looking for does not exist" Wh...

How to get catalina.out on Windows for Tomcat

Hi, I am running Tomcat 6 on Windows XP as standalone application(not as service, I am using startup.bat for launch). When I am starting tomcat I get new system window opened with stdout there. My question is: how can I redirect stdout to catalina.out in my case? Thanks. ...

Rails Custom Deprecation Notices

Is there a way to create custom deprecation notices for methods and/or associations in my application that I plan on removing and want to log their usage? I have a relationship in one of my models that I don't want to use moving forward and plan to refactor the code at a later time. I would like to create a notice in my development log e...

Putting a message in the same line

import pythoncom, pyHook, logging, string LOG_FILENAME = 'logfile.txt' def OnKeyboardEvent(event): print 'MessageName:',event.MessageName print 'Time:',event.Time print 'WindowName:',event.WindowName print 'Ascii:', event.Ascii, chr(event.Ascii) print 'Key:', event.Key print '---' k = event.Key logging.b...

How to enable logging when running Tomcat 5.5 under Eclipse 3.5?

hi, I'm running Tomcat 5.5 under Eclipse 3.5. I want to see some access logging because for instance it silently ignores imported style sheets it can't find. I saw a reference somewhere to org.apache.catalina.valves.AccessLogValve so I tried uncommenting that in server.xml but it makes no difference. Nothing extra to the console, nothing...

How can I get log4j to print exceptions properly?

Hi, I am using log4j with tomcat. When I log exceptions in my JSPs, servlets: private Logger _log = Logger.getLogger(this.getClass()); ... try{...} catch (Exception e) { _log.error("Error refreshing all prices", e); } I only get the first line of the exception. 17-Feb 17:37:45 ERROR AutoContrib:175 - Exception while publishing...

Logging with Castle.Facilities.Logging and log4net

Hello, i'm trying to get log4net integration for Castle Windsor working. I wrote my class with an public property of type ILogger and took the configuration in my app.config like following. <configuration> <configsections> <section name="castle" type="Castle.Windsor.Configuration.AppDomain.CastleSectionHandler, Castle.Windsor" /...

How can I view log events remotely using Log4J and Apache Chainsaw?

I have a Java web application that currently uses Log4J for logging. I'd like to use Apache Chainsaw to view and parse the logs remotely. So far, I've had trouble understanding how to setup both the client side (the Chainsaw client) and the server side (the log4j config in my webapp) to successfully enable remote logging. Here is what...

How can INFO and DEBUG logging message be sent to stdout and higher level message to stderr

Is there an easy way with python's logging module to send messages with a DEBUG or INFO level and the one with a higher level to different streams? Is a good idea anyway? ...

Performance and Functioanlity Difference between log4j and Logging Util class

I am newbie for the logging class in Java.util package, I have developed an Application and want to implement the logging mechanism at different levels, I am just thinking to which one to go for and identify the differences between these 2. I am looking 1) logger should be easily maintainable, implementable. Can any one suggest on this. ...

Can I configure IIS 7 Logging using Web.config?

I want to configure IIS 7 logging options (log file format, request fields included, log file rollover, etc.) using a site-level Web.config file. Is this possible? I assumed system.webServer/httpLogging would let me do what I need, but there are only two attributes available on that element and no child elements. ...

Rails avoid writing attribute of nested object to log

How can I prevent a certain parameter of a nested relationship in rails from entering the log file - I am writing LARGE files to a column in the db and don't want rails to write that to the log file.. I know of filter_parameter_logging but it doesn't seem to work for nested models - I may just be putting in the wrong spot? ...

How to log messages passing through ejabberd

I would like to log when a stanza (message and presence only) was received by the ejabberd server,a nd when it was sent to the other party (or broardcast). Whats important for me is to log the stanza and the times they are sent & received. Thanks. ...