last day (20 days later) » 

7:08 PM
Hi
 
How are you?
 
Doing good. Yourself?
 
Enjoying lyf :)
Well, I've a doubt.
 
Let's take care of it :)
 
7:13 PM
How do you implement logging in your spring application? Do you use AOP?
Or just plain logs in every method?
 
plain logs
 
Ok, why I'm asking this is, b'coz in my application, when I get a BeanCreationException, it is being logged in tomcat catalina logs.
But I wanted a way to log them in our application logs only.
Haven't go enough help from google till now.
*got
 
Hmmm, that shouldn't be the case.
Give me asecond to test something.
You're using LSF4J?
 
7:16 PM
Yes
 
Can you show your logger configuration?
 
Ah! I can only do that once I reach office tomorrow. That is why I didn't post a question.
 
I'm using logback
with a very simple
 
So we need to configure something in logback.xml specifically about those exception?
 
<logger name="org.springframework" level="WARN" additivity="false">
<appender-ref ref="STDOUT" />
</logger>
everything gets logged to file
well STDOUT but that's in test env
 
7:21 PM
ok
ok, ok. I don't have that configuration as far as I remember.
So the reference will be of some RollingFileAppender, or something else.
 
lemme check some more
yea
 
Ah! I guess that would solve my problem. Will test that as soon as I reach office tomorrow.
Hey, do you write some blogs about spring?
 
ok, nevermind
I see now what you mean
those are exceptions logged by the servlet container
 
yes.
 
those aren't logged by Spring
so I don't think you can control that
It's the Container startup sequence
 
7:25 PM
hmm.
 
You might be able to change the container logger configuration
 
I thought so. So there is no way around?
 
but honestly, why do you want that
container errors should go to container logs
 
Actually it's the client that want it :(
Will discuss this with them tomorrow. May be clarify a bit the requirement.
 
Bean creation errors are deployment/configuration errors
 
7:28 PM
yeah right.
Let's see what's the outcome tomorrow.
 
The client doesn't always know what they want :)
 
Yes true.
I'll let the Architect deal with them :)
 
Good luck!
 
Thanks :)
Actually I've an interview tomorrow on Spring MVC.
Haven't even revised anything ;)
 
The documentation is only like 1231251 pages.
 
7:33 PM
haha :) And I've reached 1231249
from back :P
ok brother.. bbye :)
see you.
 
take care!
 
you too!!
 

  last day (20 days later) »