|
What is the difference between Simple Logging Facade for Java and Apache Commons Logging ?
Started by Azder on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
A native SLF4J.
However, SLF4J is much simpler in design and arguably more robust also be used as an API to implement native logging libraries, like Logback did.
Of as yet another logging facade.
|
|
Java 5 has introduced many features that can be make logging statements less cluttering, such as variable number of arguments and printf. That can alleviate all the message building code that happens when something is logged, as well as the surrounding...
Started by flybywire on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
SLF4....
Simple Logging Facade for Java (SLF4J)
The Simple Logging Facade for Java or (SLF4J) is intended to serve as a simple facade for various logging APIs allowing to the end-user to plug in the desired migration tool.
For that.
|
|
Is there a way to prevent Postgresql from logging ERRORs caused by attempted insertions where a UNIQUE KEY constraint is violated?
I could change the server_log_min directive, but this would disable all ERROR messages and not just those for UNIQUE KEY...
Started by bugmenot77 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
You could do it by hacking the source code value violates unique constraint \"%s\"", RelationGetRelationName(rel))));
You could change the log level there from ERROR to LOG....
This just by adjusting the logging mechanism on the server.
|
Ask your Facebook Friends
|
The numerous (sigh...) logging frameworks for Java all do a nice job of showing the line number of the source file name for the method that created the log message:
log.info("hey"); [INFO] [Foo:413] hey
But if have a helper method in between, the actual...
Started by Thilo on
, 6 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
So:
ask log4j not to output it (in your logging....
Line(TheClass.main(TheClass.java:4)) Message using full log method in logging helper.
) { LoggingHelper.log("Message using full log method in logging helper result.
|
|
I'm starting this new project and we are thrashing out our logging/debugging approach and I wanted to put the question to the rest of you on SO, given
private final static Logger logger = LoggerFactory.getLogger(getClass()); ... public void doSumething...
Started by non sequitor on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I'm ways of doing logging than this:
if(logger.isDebugEnabled())
Have a look at log4j which will enable you to change log levels, different....
It feels right to separate logging from logic.
I'm quite found of the aspect oriented approach.
|
|
I'm having an issue with the 3.1 version of the logging application block...
With 3.5 framework my application works fine on my desktop... once it's deployed out to our qa box... the logging ceases to function. The web.config is identical in both scenarios...
Answer Snippets (Read the full thread at stackoverflow):
If you move it to local system.
The event log and no error is generated (note this is a real pain).
|
|
Hi,
Something here doesn't feel right to me here, and so I would like the community's input - perhaps I am approaching this in the wrong way....
Q: Is is appropriate to use traditional infrastructure logging frameworks (like log4net) to log business events...
Started by Sosh on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
In this case I'd feel like traditional logging frameworks wouldnt be suitable because when it comes to data that you might later want to access within your application logging frameworks allow you to do things that dont really make sense....
|
|
When logging with Log4Net it's very easy to put class that called the log into the log file. I've found in the past that this makes it very easy to trace through the code and see the flow through the classes. In Log4Net I use the %logger property in the...
Started by Odd on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Put something like this in a logging wrapper:
public void LogSomething like this at the end of the log:
Extended Properties: Called from - LAB_Demo.Tester.
From the formatter template, of course.
|
|
So we've discussed logging in passing at my place of work and I was wondering if some of you guys here could give me some ideas of your approaches?
Typically our scenario is, no logging really at all, and mostly .NET apps, winforms/WPF clients talking...
Started by crucible on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
By logging to the event log, you make it much more likely that warnings or errors can ....
That log to the Event Log (preferably their own, otherwise the application log) for all logging but trace logs.
|
|
When you log out of a web app, should ALL your session be logged out? When I log out of the web app from the public library, should it also log me out of the session I have on my home computer?
When you choose "remember me" or "stay signed in" when logging...
Started by scotts on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
When you log out of a web app, should ALL your session be logged out?
Generally, if the requirement is that a person be logged on to only one location at a time, it will log off the first computer choose "remember me" or "stay....
|