Hi,
I need a logging tool for. Net which can change configuration at runtime. What I want to do is the following:
application starts and logging should start too
some data is processed, a certain event occures
a new logger and a new logging sink is created (a database which does not exist at program start)
log4net works fine for me,...
Hi All,
I had a quick log4net question. How can I specify which appender to use from the app.Config?
This particular config file references 2 different appenders. Both are rolling file appenders but they point to different files. Throughout the application log4net is being called and a type is passed into the constructor. like this...
...
I'm using MS Enterprise Logging Application Block in an ASP.NET website.
For production launch, I will set up a log listener in one of these locations:
Sql Server database
Windows event log
Text files
Which has the least impact on performance?
NB - I can't switch to Log4Net or ELMAH at this point, so please don't suggest that in yo...
Hi,
I have a GUI application in swing, implemented in NetBeans. For the various functionality provided from the input of the user, a jar is used, which uses log4j for logging. All is ok, but I have to redirect information from log4j to a text area in my GUI. I have found that to redirect from log4j to swing text area, one must extend an...
I am starting to do some work with the Windows API. However, I noticed that you can not use functions like printf if you have a windowed application. What is the standard way of printing debug and logging information? Sorry if this is an obvious question.
...
Hi,
I'm trying to reformat the output data sent to the logger based on it's class.
For example:
strings will be printed as they are
dictionaries/lists will be automatically indented/beautified into html
my custom classes will be handled on an individual basis and converted to html
My problem is that the message sent to the formatte...
Hi,
i have my application installed on a windows server, under apache web server. This project is facing a performance issue now, It is responding very slow. Web application is installed in Jboss, and apache webserver communicates with jboss via AJP protocol.
I am studying why this performance problem is hitting my web application.
Ove...
I'm trying to find a decent way to do logging from C++. My current solution is this:
ostream & GetLog() { if( output == NULL ) throw error; return *output; }
Where output is defined somewhere and can be a file or whatever. This is fine, but it doesn't let me do anything other than throw an error if output is not allocated. Also, my pr...
I have been recently involved in handling the console logs for a server and I was wondering, out of curiosity, that is there a performance issue in writing to a large file as compared to small ones.
For instance is it a good idea to keep the log file size small instead of letting them grow bulky, but I was not able to argue much in favo...
I have many databases in one SQL Server instance. Also I have many individual domain users for logins and also domain groups as logins. These logins are attached to databases as database users. Now I would like to create a report (or a query) to find out when and where (which database) these logins take a connection. I tried to find this...
Hi all,
I'm running a web app on Apache 2.2 with the usual access_log enabled. For privacy reasons, I'd like to remove specific parts from some URLs before they're written to the log (i.e., post-processing the logs is not an option). I made a small perl script along the lines of
$|=1; # unbuffered writes
open(LOG, ">> ${ARGV[0]}") o...
Using the framework Twisted, when you use startLogging(), you get logging lines like:
Y-M-D H-m-s [Class - IP] message
How can I format that output in order to eliminate the date and the IP?
Thanks
...
I'm trying to learn the built-in features of tracing. I can't figure out how to use the config to set the level (information, warn, error) that gets written to my listen.
I have the default app.config with it . In my code, I use Trace.TraceInformation() and Trace.TraceError.
All of the messages are written to my text file. I want to b...
Hi,
I have a following problem. I have a Windows 7 computer with pinging enabled, and clients which ping my computer from time to time. I would like to have a log and real time reporting of ip addresses which are pinging me. Is this possible?
...
I'm creating a parsing application, which parses ~20 sites, ~7-15 values from each. Pseudocode looks like:
ParserA : ParserBase
{
public override SomeEntity Parse(...)
{
SomeEntity se = new SomeEntity();
//some code, parsing value1;
//some code, parsing value1;
//some code, parsing value1;
//some code, parsing value2;
//some co...
Background
To capture data from a logic controller, I'm using screen as a terminal emulator and connecting my MacBook via the KeySpan USA-19HS USB Serial Adapter. I've created the following bash script, so that I can type talk2controller <filename> where filename is the name of the data file.
#!/bin/bash
if [ -z "$1" ]; then
echo P...
Both the Python logging module and CherryPy's Config API use ConfigParser files. Therefore, I assumed that I could use one single config file for my own applications configuration, it's logging configuration, and CherryPy's configuration.
When my logging and CherryPy were separate, they worked fine, and my config file does parse with n...
I have the below configured for log4j which outputs a csv log file. Every time my program executes I wish to start this log file a fresh by overwriting not appending to the log file. I thought I could achieve this by using the append=false. I know that I have correctly set up log4j as other logs are outputting fine but these are daily ro...
Hi All
Requirement is this ...
One question, The usual place seems to be in your /WEB-INF/classes directory, but I have problems with that.if I ship my application as a WAR file, I can't get at it to edit it, which is a real problem.
We have our 3 WAR, we deployed apps with tomcat 6.0.16. We want to configure log4j.xml in external dir...
Hi, since i migrated to rails 3.0, logs are now filled with queries like this:
SQL (8.5ms) SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"checkins"'::regclass
AND a.attnum > 0 AND NOT a.a...