logging

Logging causing XML Parsing to break?!

I'm seeing something very very strange happening in a Flex app I'm maintaining. I've been going through it removing all calls to trace() and replacing it with calls into the logging framework (using the built in mx.logging stuff). After doing so some XML parsing code suddenly broke, and I can't for the life of me figure out why. here'...

Custom value for the Event Log source property for ASP.NET errors

By default, ASP.NET records all uncaught exceptions to system Event Log. I’m aware of the fact that one should have a proper logging facility in place, but this is better than nothing and it serves well as a temporary solution. I would like to be able to filter efficiently the events in the log. I learned that, when logging programmatic...

What do I do with my exceptions in asp.net?

I'm working on an ASP.NET MVC application and just getting to error handling. Help me solve the issue of getting the error message back to the user. I have a controller: [AcceptVerbs(HttpVerbs.Get)] public ActionResult Show(string callNumber) { ServiceCallService sc = new ServiceCallService(); return View...

What's the best way to trace log a .NET HTTP handler?

We have a very high-performance multi-threaded .NET HTTP handler application and want to enable trace logging for debugging. I have a few questions about this: Is tracelevel the best way to toggle on/off logging? If tracelevel is "off," will the tracelevel statements have any impact on performance? When using an HTTP handler, how can I...

Apply formatting to unix shell

I've been looking at some server logs using tail -f recently, and have thought that it'd be much easier to see some things if I could format the output. Really all I'm looking for is a way to perhaps colour certain words (determined by a regex), and perhaps remove certain words (again, determined by a regex). I know there's programs whi...

Doubt in FileAppender in log4j API

Hi All, I have created java program which will process different file which coming to the particular folder.In my program, I need to create log file for each incoming file for logging exception for that file. I have used the below code for that. Problem i am facing is for 1st file it creates log file and logging exception. When second f...

WebSphere Portal 6.0 Portlet Error Logging

Where I can find the error logs from a portlet deployed to WebSphere Portal 6.0 (Linux) ...

How to use my logging class like a std C++ stream?

I've a working logger class, which outputs some text into a richtextbox (Win32, C++). Problem is, i always end up using it like this: stringstream ss; ss << someInt << someString; debugLogger.log(ss.str()); instead, it would be much more convenient to use it like a stream as in: debugLogger << someInt << someString; Is there a ...

3rd party jars creating log files

So we ran into an interesting issue today. We have a JEE (J2EE) web app that uses a bunch of 3rd party jars. This includes Hibernate. We use the java logging api that comes with the SDK for logging purposes. Typically we are pretty thin on logging but we ran into this issue with one of our 3rd party jars using log4j to create it's own l...

Can I get Nginx to log certain types of requests differently?

I want Nginx to log requests that start with /path to a certain log file. like this: http://domain.com/path/to/dir = Logged http://www.domain.com/to/some/dir/path/ = Not Logged http://sub.domain.com/ = Not Logged Sorry if this is vague, but I'm new to the nginx config biz. Feel free to ask questions about what I'm doing, I'll answer...

Separate INFO and ERROR logs from java.util.logging

I'm configuring the logging for a Java application. What I'm aiming for is two logs: one for all messages and one for just messages above a certain level. The app uses the java.util.logging.* classes: I'm using it as is, so I'm limited to configuration through a logging.properties file. I don't see a way to configure two FileHandlers d...

dependency injection and logging interfaces

I was wondering what some of the best practices were around logging and logging frameworks and dependency injection. Specifically, if I am designing a class that needs a way to log, how should I go about getting an interface to log to keeping dependency injection in mind? Dependency injection seems states that external dependencies shou...

How can I strip Python logging calls without commenting them out?

Today I was thinking about a Python project I wrote about a year back where I used logging pretty extensively. I remember having to comment out a lot of logging calls in inner-loop-like scenarios (the 90% code) because of the overhead (hotshot indicated it was one of my biggest bottlenecks). I wonder now if there's some canonical way to...

How to login to HTML form using POST vars in C# (.NET)?

Hi, For example, there is this website: www.azet.sk On the right, there is login and password, I'd like my application to login to this web application and retrieve the data from my own account to C# (.NET) application and work with it. The aim is to keep the "logged in" connection alive and send vars using POST method. Is there any tu...

Why can't I get Apache's CustomLog directive to work?

I'm trying to use Apache's CustomLog directive to create some custom log files, but can't get it working. Here is the configuration I'm using for the custom logs: LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%{Referer}i -> %U" referer LogFormat "%{User-agent}i" agent CustomLog /var/log/apache2/jb_common common CustomLog /var...

VB.NET Tracing Variables

I'm working on an approach to trace logging for my company's VB.NET project. The .NET framework has pretty versatile trace capabilities and I'd like to use what .NET already provides. My company wants to stay away from 3rd party software, so log4net and whatnot is out of the question. They want to be able to trace the flow of the web ...

Custom Trace Listener with the Enterprise Application Blocks

The project I'm currently working on uses Enterprise Libraries V3.1 framework for logging. I need to take the log file that's generated and archive it off at specific points. The built in Trace Listeners seem to keep the file open in-between logging events. I've set up a custom Trace Listener which will append to a file and close it, so...

Looking for a free log file reader

Hey guys - I was wondering if you can point me in the right direction here...I am looking for a free text log reader that can read the logs (trace logs for example) live, as they get written to. Pause and Resume functions would be nice too. Thanks a bunch in advance. I should clarify - the tool needs to run on Windows. ...

Extend standard python logging, to include the line number where a log method was invoked

Is it possible to somehow decorate/extend the python standard logging system, so that when a logging method is invoked it also logs the file and the line number where it was invoked or maybe the method that invoked it. ...

Please recommend a good debug logging framework for ASP.NET with a good viewer.

First of all - I've seen this question, but mine is a bit different. What I need is some framework for logging debug information. This information will NOT be present in production environment. It will be used for tracking down performance problems and other generic bugs. Especially for performance problems, so it will be used a lot tog...