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'...
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...
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...
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...
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...
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...
Where I can find the error logs from a portlet deployed to WebSphere Portal 6.0 (Linux)
...
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 ...
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...
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...
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...
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...
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...
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...
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...
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 ...
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...
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.
...
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.
...
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...