I've developed an IFilter - a library that is to be deployed into Windows\System32. One possible strategy for reporting errors occuring inside it is writing them to a log file. Where should I put that log file so that I don't have problems with permissions and this solution is Vista/Win2k8 acceptable?
...
Hi.
Im working on a pl-sql script, in which I have about 10 TO_CHAR conversions.
One of them is throwing an
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
exception.
Currently, im logging the message with this piece of code
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.put_line('Exception message is '|...
I have a 1GB slice from slicehost and I have 4 projects running on that box. All 4 applications are ruby on rails application. I was wondering what is the best way to ensure that log files are rotated.
I would prefer to have 4 different log files one for each app rather than having one big log file for all 4 applications.
I am running...
I'm using WCF Exception Shielding to map various exceptions to FaultContracts so I can limit what information I expose to the client. I had hoped to leverage the {Guid} mapping property so I could correlate client logs and server logs:
<mappings>
<add source="{Guid}" name="Id" />
<add source="{Message}" name="MessageText" />
</mapp...
Is there a facility similar to ELMAH but for non-ASP applications? One that will handle all unhandled exceptions and write them to multiple sources?
Or is there some way to easily capture all unhandled exceptions, similar to Application_Error in an ASP.NET Global.asax.cs file? If that can be done, I can then just use NLog or similar to ...
I have yet to find a way of setting up Python logging with Django that I'm happy with. My requirements are fairly simple:
Different log handlers for different events - that is, I want to be able to log to different files
Easy access to loggers in my modules. The module should be able to find its logger with little effort.
Should be eas...
I want to redirect only stacktrace of uncaught exception from console to log file. The rest of the things should appear on console as usual.
...
Say I have the following bean definition:
<bean id="dataSource" destroy-method="close" class="org.apache.commons.dbcp.BasicDataSource">
<property name="url" value="${jdbc.url}"/>
<property name="username" value="${jdbc.username}"/>
<property name="password" value="${jdbc.password}"/>
<property name="driverClassName" v...
Sometimes there are severe bugs (new or reintroduced) in productions that go on for days and weeks, and customers do not always notify us. The only tool I have now is grep, awk & perl but I am just being reactive once someone complains.
I want to be proactive and be notified when a certain error has occured for certain number of times i...
First of all, apologies for the subjective sounding title. This is intended as a direct question.
At present I am working on a suite of tools:
A C# Windows Service, to primarily
maintain an Oracle database.
A C# Windows Service, (which will be
used on multiple node sites) to
process content of the database.
An ASP.NET web interface to...
Does a StreamReader lock a text file whilst it is reading it?
If it does, can I force the StreamReader to work in a "read-only" or "non locking" mode?
My workaround would be to copy the file to a temp location and read it from there but I would prefer to use the StreamReader directly if possible.
Any alternative suggetions?
Background:...
I'm starting to do the job of sql optimization,
but I don't know how to configure MySQL properly to make it log slow queries.
...
I need to log queries from a number of applications that use SQLite. Introducing logging to the applications would in this case not be a feasible solution in practice. So how can I enable query logging in SQLite itself?
...
I would like to use Log4perl in a project but disable it for a certain class (which is, in this case Net::Amazon). I thought this would be an easy one, but somehow I failed.
I tried using
use Log::Log4perl (:easy_init);
use Net::Amazon;
my $amz = Net::Amazon->new( ... );
my $log = Log::Log4perl->easy_init($DEBUG);
$log = $log->get_log...
I have the logging module MemoryHandler set up to queue debug and error messages for the SMTPHandler target. What I want is for an email to be sent when the process errors that contains all debug statements up to that point (one per line). What I get instead is a separate email for every debug message.
This seems like it should be trivi...
I'm writing a logging tool which writes messages to a file, and I'm not sure of the best way to deal with the file pointer. I'm tossing up between these two methods:
// Open, Write, Close; Open, Write, Close...
function write($message) {
$fh = fopen('file.log', 'a');
fwrite($fh, $message . "\n");
fclose($fh);
}
// OR -----
...
These are text-formatted, line-deliminated files written by applications like mysql or apache that are out of my control.
...
My application uses several threads with well-defined names (i.e. not a thread pool with 'anonymous' threads). Right now, all of these threads send their log messages to one file - and although the thread ID is part of the log line, this makes it very hard to analyse the application behaviour. Thus, I want each thread to log into its own...
I am interested in very high speed logging within log4net(around 10K messages per second).
to that end i thought of implementing the following modules:
protocol buffers based Layout (IRawlayout) - for superior serialization performance
shared memory appender and Plugin - to reduce IPC between the logging application and the logging ser...
Hi there, folks.
Here I am again with questions about multi-threading and an exercise of my Concurrent Programming class.
I have a multi-threaded server - implemented using .NET Asynchronous Programming Model - with GET (download) and PUT (upload) file services. This part is done and tested.
It happens that the statement of the proble...