[prev in list] [next in list] [prev in thread] [next in thread]
List: xml-cocoon-users
Subject: Re: [C3] Logging properties [SOLVED]
From: "Hugh Sparks" <hugh () csparks ! com>
Date: 2011-11-28 19:53:34
Message-ID: FBB7D875E7BB425FB1F089ED3EF7DE7A () Asus
[Download RAW message or body]
Sorry!
I discovered that in fact, both methods work equally well.
My understanding of log tailing in Windows was defective.
-Hugh Sparks
----- Original Message -----
From: Hugh Sparks
To: users cocoon.apache.org
Sent: Monday, November 28, 2011 11:27 AM
Subject: [C3] Logging properties
I'm having trouble changing the logback logging level.
I want to temporarily switch the level to INFO.
The logback.xml file contains this construct:
...
<root>
<level value="${org.apache.cocoon.logback.loglevel:-WARN}"/>
<appender-ref ref="CORE"/>
</root>
I guess this sets the level to "WARN" unless the placeholder is defined with some \
other value. So I'd like to alter the value of the placeholder. First, I tried a \
properties file. On the source side, I put it here:
src/main/resources/META-INF/cocoon/properties/cocoon-logback.properties
Containing the expression:
org.apache.cocoon.logback.loglevel=INFO
This had no effect.
I'm a little fuzzy on how cocoon properties files should be named and positioned. \
(Pehaps someone will reply with a quick overview?)
Next, I put the setting in applicationContext.xml:
<configurator:settings>
<configurator:property
name="org.apache.cocoon.logback.loglevel"
value="INFO"
/>
</configurator:settings>
But I still don't see INFO messages after the initial (unavoidable?) jetty startup \
outburst.
Something else is turning off the INFO setting or my attempts are misguided.
Thanks to all who reply.
-Hugh Sparks
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 9.00.8112.16437">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Sorry!</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial>I discovered that in fact, both methods work
equally well.</FONT></DIV>
<DIV><FONT size=2 face=Arial>My understanding of log tailing in Windows was
defective.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>-Hugh Sparks</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; \
MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px" dir=ltr>
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=hugh@csparks.com href="mailto:hugh@csparks.com">Hugh Sparks</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=users@cocoon.apache.org
href="mailto:users@cocoon.apache.org">users cocoon.apache.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, November 28, 2011 11:27
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [C3] Logging properties</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Courier>I'm having trouble changing the logback logging
level.</FONT></DIV><FONT face=Courier>
<DIV><FONT face=Courier>I want to temporarily switch the level to
INFO.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV>The logback.xml file contains this construct:</FONT></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT face="Courier New"> ...</FONT></DIV>
<DIV><FONT face=Courier>
<root><BR> <level
value="${org.apache.cocoon.logback.loglevel:-WARN}"/><BR> <appender-ref \
ref="CORE"/><BR> </root></FONT></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT face="Courier New">I guess this sets the level to "WARN" unless the
placeholder is defined with some other value. So I'd like to alter the value
of the </FONT><FONT face=Courier>placeholder. First, I tried a properties
file. On the source side, I put it here:</FONT></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT face=Courier>
src/main/resources/META-INF/cocoon/properties/cocoon-logback.properties</FONT></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT face=Courier>Containing the expression:</FONT></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT face=Courier>
org.apache.cocoon.logback.loglevel=INFO</FONT></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT face=Courier>This had no effect.</FONT></DIV>
<DIV><FONT face=Courier>I'm a little fuzzy on how cocoon properties files
should </FONT><FONT face=Courier>be named and positioned. (Pehaps someone will
reply with a quick </FONT><FONT face="Courier New">overview?)</FONT></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT face=Courier>Next, I put the setting in
applicationContext.xml:</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face=Courier>
<configurator:settings><BR> \
<configurator:property</FONT></DIV>
<DIV><FONT face=Courier>
name="org.apache.cocoon.logback.loglevel"</FONT></DIV>
<DIV><FONT face=Courier>
value="INFO"</FONT></DIV>
<DIV><FONT face=Courier>
/><BR>
</configurator:settings><BR></DIV></FONT>
<DIV><FONT face=Courier>But I still don't see INFO messages after
the initial (unavoidable?) jetty startup outburst.</FONT></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT face=Courier>Something else is turning off the INFO setting or my
attempts are misguided.</FONT></DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT face="Courier New">Thanks to all who reply.</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">-Hugh Sparks</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT face=Courier></FONT> </DIV>
<DIV><FONT face=Courier></FONT> </DIV></BLOCKQUOTE></BODY></HTML>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic