logging

How to fail gracefully and get notified if screen scraping fails in ruby on rails

I am working on a Rails 3 project that relies heavily on screen scraping to collect data mainly using Nokogiri. I'm aggregating essentially all the same data but I'm grabbing it from many difference sources and as time goes on I will be adding more and more. However I am acutely aware that screen scraping can be notoriously unreliable....

MongoDB C# Logging Search Results

Hello! I am working on a mobile site that lets you search for tags of a MongoDB collection of articles. Basically, each article object has a tags property, which stores an array of tag strings. The search works fine, but I also want to add logging to the searches. The reason is that I want to see what visitors are searching for and wh...

How do you get the variables passed into function using macros (objective c)

Does anyone know how to dynamically get all the variables values passed into a function for the sake of logging ? I'm looking for a simple way (like using a compiler macro) to be able to log the function, and the variable values passed into it (which will then be written to a log file so we can easily find inputs that cause functions to...

Simplest way of outputting debug content into file

I've got an applicaiton with various php scripts. I want to get an idea of how much time it takes for the execution to move from one point to another (there are many such points). I was looking for a simple php line that I can insert without modification, at different spots in my code and get an output file (NOT generated html) which sh...

Is there a way to monitor/log all internet requests from Flash/AC3 application?

Hello everybody, I have a flash-based (AC3) application which does some network activity. Is there any way to see what requests it generates? Something like network console. Sources are not available and there is no way to modify the application. Im on linux platform (Ubuntu), so dont have any flash developer tools. The only solutio...

Run Logback in Debug

I've recently switched from log4j to logback and am wondering if there is an easy way to run logback in debug mode, similar to log4j's log4j.debug property. I need to see where it is picking up my logback.xml from. The docs mention using a StatusPrinter to print out logback's internal status, but that would require code changes. ...

Setting Logback Appender path programmatically

I'm trying to set Logback appender path programmatically. (RollingFileAppender with FixedWindowRollingPolicy to be exact) I'm doing this because I want to enable my users to set the log path in a preference dialog (Eclipse RCP) I've tried something like this, but I doesn't change the log path from what's defined in the configuration fi...

mod_rewrite log with referers?

Is there any way to get mod_rewrite to log referers when it does a redirect? ...

simultaneous logging in php

Hi All, I have a question. I have a script that's fired by a GET trigger. I'm trying to log the executions of the script using fwrite and append, but what I have happening is that if an instance is called while another instane is still writing the file, it will interrupt the fwrite and insert its own data. Is there any way I can queu...

How to configure ipy_user_conf.py to get IPython to start logging right away?

64-bit Vista, Python 2.6, IPython 0.10 I want to try logging everything I do, so I set o.log = 1 in my ipy_user_conf.py . But logging doesn't start. It will if I enter "logstart" at the prompt. But what's the problem with 'o.log = 1'? ...

Debug Applications in JavaFX Mobile Emulator

Is it possible to debug application that is running in JavaFX Mobile Emulator? Would it be possible to enable logging on apps that are running on JavaFX Mobile Emulator? if so how? ...

How to log SOAP messages which are sent by Metro stack

I'm trying to log my messages which are sent using a Metro stack into console. Could not find any way. ...

What is a good way to handle slf4j logging in a web app deployed in Glassfish 3.0.1?

I have a quite ordinary web application which logs with slf4j, which is fine, and I have used several slf4j backends without any problems. Under Tomcat I just told logback to point at a location in the filesystem and log there, but now I want to deploy several independent instances of this application each in its own domain in a single ...

Logging in .NET

Hello, I'm working on a new ASP.NET application and I'm interested in using a recommended approach for logging. My question to the community is, what logging framework do you like to use on your ASP.NET projects? What are the pros / cons? There are so many and they seem to change all the time that I'm just not sure which road to go down...

Apache log4net: How to set CC and BCC addresses to SmtpAppender from config file

I've been trying to add cc and bcc addresses to log4net's SmtpAppender but I'm getting no flair: <appender name="Mail" type="log4net.Appender.SmtpAppender"> <to value="[email protected]" /> <cc value="[email protected]" /> <bcc value="[email protected]" /> <from value="[email protected]" /> <subject ...

how to not log Digester?

hey guys, i'm new to this forum. at first glance this community looks awesome. I have an easy question. I am logging with log4j and am new to tomcat. I have found the file where the log rules are set, filename: server.log4j-console.properties i use for it to not log all digester in BATCH.debug.log here is the code in server.log4j-consol...

How to "install" AS3Commons Logging in Flash?

Hi im pretty new to flash so sorry if the question is stupid, but i just can´t get the as3commons logger to run. What i did: package { import org.as3commons.logging.ILogger; import org.as3commons.logging.LoggerFactory; public class "classname" { var logger:ILogger = LoggerFactory.getLogger("myLogger"); ...

How to check compiler log in sql developer?

I get this error: Errors: check compiler log How can I see compiler log in Oracle SQL Developer? ...

Following multiple log files efficiently

I'm intending to create a programme that can permanently follow a large dynamic set of log files to copy their entries over to a database for easier near-realtime statistics. The log files are written by diverse daemons and applications, but the format of them is known so they can be parsed. Some of the daemons write logs into one file p...

How to prevent Rails ActiveRecord from logging blob contents?

I'm writing a Rails 2.3.8 application and appreciate the ActiveRecord default logging configuration in development mode which is to show the SQL queries and their values at the server console. But, in the case of blob values I would prefer not seeing them. Is it possible to maintain the same logging level but without getting blobs cont...