Just wondering if enabling verbose GC would have any effect on the performance of an application.
My guess is no not really.
I know that enabling verbose GC can output a fair bit data and was wondering is this realistically going to have any effect on performance?
...
I'm looking into hooking up a 3rd party Java application to our log aggregation/analysis solution (probably Splunk, we haven't finalized our selection yet though). It seems to be easiest to hook the Splunk agent to syslog, so I'm looking for a way to redirect the application logs to a local syslog daemon on the server.
The Java applicat...
As the title already says, is there a way to get rid of the headers and footers that are placed before and after each log entry when using a Rolling Flat File Trace Listener?
Although I cleared the "Header" and "Footer" properties the log file still shows an empty line before and after each log entry.
Update
Here you can see the con...
We have several choices for logging in our .NET (C#) server application. We are going to use Enterprise Library. So here are the ways to go:
1) Writing log to MSMQ synchronously, then reading MSMQ with Win Service. Queue is on the local machine for server application.
2) Writing log to disk (i.e. rolling text files) synchronously.
3) W...
Hi guys,
In MySQL, I've set the log_output to FILE, and general_log to ON, and the queries start rushing in for me to debug. BUT, after 1022 bytes, each query is abruptly truncated. How can I increase this limit so that I get to debug also the long queries?
Cheers
Nik
...
I am looking for a tool that lets you monitor/log page rendering time on client machines. I am not looking for firebug/yslow because i want to know the following type of things:
How does fast do my pages load when the user is in russia?
How long does it take for javascript to run on some pages for everyone who accesses those pages?
S...
What is the formal definition of the schema of messages created by java.util.logging.XMLFormatter?
Thanks
...
For log tracing inside a for comprehension, I've used dummy assignment like this:
val ll = List(List(1,2),List(1))
for {
outer <- ll
a = Console.println(outer) // dummy assignment makes it compile
inner <- outer
} yield inner
The a = bit seems awkward. Is there a cleaner way?
...
Environment: JUnit 4, JDK 6
I would like to log all test names (annotated with @Test) and figure out the amount of time taken to execute each tests executed by JUnit in a standard J2SE environment.
Should I rely on in-built JDK logging Logger.entering / exiting with System.currentTimeInMillis or is there a better way to do this.
...
I'm using the Console.SetOut method to write all my Console.Out.WriteLines to a file, and this works. The only problem is that it only writes everything to the textfile when I close my application instead of it writing whenever a Console.Out.WriteLine happens.
Any ideas on how I can realise this?
How I do it:
Before Application.Run();
...
I have an VB.NET app that writes the status to a log file in text format. Over time, the file is getting large and I wanted to know if there is an efficient way to truncate the beginning of the file.
To make things easier, I am looking to specify a file size (say 2-3 mb) and I am writing the log using a StreamWriter:
Using strm As N...
Is there a Logger that will easily log my stacktrace (what I get with
ex.printStackTrace())? I've searched the log4j docs and found nothing
about logging the stacktrace.
I can do this myself with
StringWriter sw = new StringWriter();
ex.printStackTrace(new PrintWriter(sw));
String stacktrace = sw.toString();
logger.error(stacktrace);
...
I am using java.util.logging.Logger
But with storing messages in a log file, it also writes messages to the standard output (console).
How can I disable the logger to display messages on standard output?
...
Hi,
I have few questions regarding flex logging...
i. how do i append logs in existing flashlog.txt???
ii.can we append timestamp to name of flashlog.txt??eg.flashlog_2/25/2010_14:07:32.974.txt
Can anyone help me?
...
Hi,
I would like to log every request that arrive to my webservice, end to log every response. I mean, the incoming and outgoing text stream. So far I've been able to log the SOAP requests and responses, but the ones which sends a browser, I coundn't.
I tried to implement the IHttpModule interface, and handle the HttpApplication.BeginRe...
Debug mode in MigLayout is quite powerful option for development and debugging. It is declared by adding a keyword in layout constraints string:
new MigLayout("fill, hidemode 3, debug");
Well, it would be nice to bind MigLayout's debug mode to the logging level of the application. Something like:
MigLayout.setLogger(LoggerFactory.get...
I want to be able to log all JMX data accessible via jconsole. Is there a way to do this programmatically? I'm building a form of logging of the system, and I want to create intervaled data viewable with some tool similar to jconsole.
How would I go about doing this?
...
We are using XpoLog (http://www.xpolog.com) to view and search our application logs, I would like to add the logs to the new automatic problem analysis, how this need to be done?
...
So I asked a question a while back about securing downloads using C# (http://stackoverflow.com/questions/2178984/securing-large-downloads-using-c-and-iis-7) and I got some great advice on how to do it (involving reading the file into memory and then writing it to the user). The only problem is, now that I'm trying to implement some basic...
Hi,
Are there any known bugs with the Log4J rolling file appender. I have been using log4j happily for a number of years but was not aware of this. A colleague of mine is suggesting that there are known issues ( and i found one a Bugzilla entry on this) where under heavy load,the rolling file appender (we use the time-based one) might ...