I’m currently using Coldfusion 8.01 in a J2EE environment (jBoss), and looking to clean up what's written to the logs. Currently Coldfusion logs everything to STDOUT instead of using a proper logger like commons or log4j. Has anyone managed to change this? Maybe there are some hidden properties you can set or a log4j.properties hiding so...
Hello!
I have an ASP.NET App that uses a .NET library. I want to enable logging to somewhere to check later the error messages.
I will log ASP.NET app and .NET library, to the same place or to different places. I don't know how to do it.
I prefer to use System.Diagnostics. from .NET Framework instead of 3rd party frameworks, but I don...
Hi,
Is there a way to find out that info? Maybe in some kind of internal log in Sql Server?
I need to generate a report based on historical data, but I haven't implemented that feature in my app, as it was not a requirement in the past. Now I'm stuck.
Thanks
...
Hi,
I have the following log4j config in my Grails 1.1 app
log4j = {
// Enable Hibernate SQL logging with param values
trace 'org.hibernate.type'
debug 'org.hibernate.SQL'
debug 'com.mycompany'
appenders {
console name: 'stdout', layout: pattern(conversionPattern: '%d{dd-MM-yyyy HH:mm:ss,SSS} %5p %c{1} - ...
My web application is using Java, Hibernate's JPA implementation (EntityManager) and Spring. What are my logger choices and what would you recommend. Ideally the configuration would be simple (one config file for Hibernate, Spring and my code).
...
I need something similar to String.format(...) method, but with lazy evaluation.
This lazyFormat method should return some object whose toString() method would then evaluate the format pattern.
I suspect that somebody has already done this. Is this available in any libararies?
I want to replace this (logger is log4j instance):
if(lo...
For those who are developing applications that are under PCI scope, where the guidance suggests that you should store your application logs on another tier, remoting to a syslog server elsewhere feels like a best practice.
The question becomes, what should the PatternLayout look like that best enables folks to review their logs at least...
Hello Everyone,
My question is whether it is possible to get line/multiline (very unsure of correct term for this) behaviour of the Trace.Write and Trace.WriteLine methods but using the Microsoft Instrumentation Logging framework in .NET 2.0.
Desired Output
Hello World!
Oh Hai.
What I Currently Have
Trace.Write("Hello ");
Trace.Wri...
Is there some way to disable all logging (whether from ActiveRecord, other parts of Rails, plugins, etc.) from a script running via script/runner? I've got a long data-loading script running, and it's generating an absurd amount of useless logging information. I'm not trying to change script/runner's environment (e.g., production, develo...
I am aware of many table auditing methods. Some are trigger based and require triggers on each table to be audited. SOme have limitation based on column datatype. How can I use a logging framework like NLog or Log4Net. I want my log(in a table) to answer question " Who updated this column of this table from val0 to val1 at this time?"
I...
Stack trace is not enabled when a .net assembly is deployed in release mode. So we cannot get the stack trace from an exception and log it in production environment.
For knowing where an exception occurred in the production code and log it, we use a weird approach which I am not comfortable with but I cannot come up with a better soluti...
Are there any good books that discuss logging?
I've only used rudimentary homegrown logging solutions on my projects and would like to start using more capable logging libraries, but before I do, I'd to know more about the domain, i.e. what I should be logging, best way to setup your logging code, etc.
...
When processing a batch of records, if any of them fail business rule validations the entire set of inserted data is rolled back for data integrity. During this process I need to log such errors to a table in the database - which shouldnt be rolled back when the overall transaction is.
What is the best way to do this in SSIS? Different...
I'm using the Windows Event Log to record some events. Events within the Windows Event Log can be assigned a handful of properties. One of which, is an EventID.
Now I want to use the EventId to try and group related errors. I could just pick a number for each call to the logging method I do, but that seems a little tedious.
I want the...
We currently use Urchin 6 for web analytics of our site which is a white label product. We have a customer requesting access to our urchin server to view the reporting for their account. All our logs are combined, and so we need to be able to create a new profile and filter the logs for the given domain. We cannot split the logs per d...
I'd like to easily access the logs of a server to interpret them in a way and display that data to a website visitor. How can PHP access the HTTP logs of a server and all data therein?
...
I have a WCF service which is secured with username and password (using SqlMembershipProvider). I'd like to log EVERY (succeeded and failed) login attempt to this service and save user credentials to the database using Logging Application Block. When I turn on WCF logging and trace it with Logging Application Block, i get something like ...
I'm trying to implement a C# method that can log a message with a format string and a variable number of printf-style arguments. Ideally, it would work identically to the C function I pasted below, although idiomatic to C# of course.
static
void
LogMessage(const char * iFormat, ...)
{
va_list argp;
FILE * fp;
fp = fopen("log.txt...
The problem that I'm having with it, is that it tracks all the events in the log reader, too. This makes it very difficult to work with. As I scroll up down, click or move in the reader to examine events, it's scrolling all over the place adding new events. Is there a way to filter it to only include certain events from certain sources? ...
I'm having a stupid java logging problem: I'm loading the logging configuration from my app configuration file - but it just doesn't log anything after reading the file (which looks pretty much like the examples you will find on the net except for the additional application configuration - removing this also doesn't help). The "initializ...