My application encounters some errors on some of Motorola iDEN devices (which I have almost no experience with). I have i570 and Windows XP computer. I'd like to get log from my midlet. So my questions are: how should I do logging (currently System.out/err is used) and which tools and how to use to get log?
So far I've installed Motoro...
Hi,
I'm writing a small file conversion utility. Files get automatically converted when they are dropped into a directory.
I'm using NLog for logging. Besides a central log file which is configured using NLog.conf (and which receives all messages generated), I'd like to create one additional log file for each input file, having a simil...
Hi Guys,
I have cleared my Rails app's log file with rake log:clear.
Then Rails stopped logging the errors.... the Logfile is still empty, even though errors appeared again.
Any help?
Greets,
Joern.
...
I need to log the request post payload for requests made to IIS. Is this possible to configure the logging of request post payloads with the existing logging and advanced logging modules within IIS 7.5 or can anybody direct me to any custom modules that will allow me to log the post payload.
Regards
David
...
What are, in your opinion, the pros/cons of the following extension method?
static class Log
{
public static string AddToLog(this string input)
{
Console.WriteLine(input);
return input;
}
public static string AddToLog(this string input, string format)
{
Console.WriteLine(format, input);
...
I have been using Log4Net for several months, and I create a new Logger as a member variable for each class, like this:
// Member variables
private readonly ILog m_Logger = LogManager.GetLogger("MyClass");
Then I invoke the logger from each method in the class that logs, like this:
// Initialize
m_Logger.Info("MyClass.MyMethod() invo...
I'd like to be able to put log messages in the middle of bash functions, without affecting the output of those very functions. For example, consider the following functions log() and get_animals():
# print a log a message
log ()
{
echo "Log message: $1"
}
get_animals()
{
log "Fetching animals"
echo "cat dog mouse"
}
value...
I've been told by my company's support team that some versions of java have a significant performance impact when we turn on -verbose:gc. However I can't figure out if this is the case or not.
Was this logging slow(ish) at some point, and when did it stop?
The reason I ask is that there's some hesitation about applying this to a produ...
Hi all:
My current role requires me to setup environment which mimics the customer's and perform various checks to replicate and then analyze the problem.
Chances are, I often find working with Windows environments such like XP, Server 2003, Server 2008 is a bit painful without having the handly linux-based shell and some command-line ...
I am using C# System.Diagnostics.TextWriterTraceListener to print trace. But the trace file becomes too large (hundreds of MBs).
I want to change the behavior of TextWriterTraceListener, that if the trace file becomes large, it writes output to another file.
For example, the original trace file is 'output1.txt', if it becomes larger th...
What are best practices for managing custom logging in Ruby? Should I be monkeypatching logger to do what I want? Or extending from it? Or delegating? What's the rubyish way? I'm sick of custom hacks for this; I'd like something cleaner, and ideally more elegant.
...
The important technologies i use are: Glassfish v3, JSF 2.0, JPA 2.0, EclipseLink 2.0.2, log4j 1.2.16, commons-logging 1.1.1.
My problem is that some parts of the application are pretty slow. I analysed this with the netbeans 6.8 Profiling capabilities.
I. Logging - i use log4j and apache commons logging to generate logs in a logging ...
I have enabled trace logging in .NET to output the network data going back and forth so I can see the SOAP requests being sent to a web service. This seems to be the best way on a site that I can't debug or add a proxy between itself and the web service.
Here are the lines I've added to the web.config to enable it:
<system.diagnostics...
Hi,
I'm wondering if there's any way of having some sort of Aspect-Oriented way of setting up logging of C# code. Or if the code could be instrumented for automatic logging.
At the moment the code is riddled with Log("Enter method XXX") and Log("Leaving method XXX") which make maintenance really tedious.
Ideally I'd like to have somet...
My development log fills up with
SELECT name FROM sqlite_master WHERE
type = 'table' AND NOT name =
'sqlite_sequence'
I'd like to turn off the sqlite_master queries in sqlite3, so that I only see the interesting queries.
...
I Have a package stored in SQL Server which works properly with logging when I run it directly by right-clicking it in SQL Server, with logging.
Logging is set to 'SSIS log provider for Text File'.
When I run it from an SQL Server Agent Job, it works fine, without errors but the logging isn't done.
The job runs with the my user, the s...
If I do a
sudo netstat -tup | awk '{print $5}' | sort | uniq -c | sort -n
I can get a list and count of how many connections I have to each host. But how can I tell how many times I've been connecting to that host ever minute/hour/day? Is there a TCP log somewhere that I can grep through to see how and when I'm connecting to what?
I...
I want to log 404 and 500 errors in a pylons app before they redirect to my custom error message (/error/document).
My problem is that since Pylons does the redirect, I am unable to determine the page on which the error occurred inside the error controller. So without building a parser for the paster.log I don't know a good way to sele...
Hi,
My webapp currently employs a JS based error logging system for reporting JS error on the client side.
The problem with logging your error using javascript is just that - we are using a technology to monitor problems in that same technology.
Easily an error in the JS could prevent the logging from occuring.
I was wondering if anyone...
That is a common question, but I would like to hear some expert opinions.
I'm starting a new PHP project that I would like to keep an eye on. What I want to track is:
included files - frameworks that use index.php and bootstrap files and
load many files on page load
sql dumps - this one is easier because most frameworks have DB
loggin...