Hi Adrien,

 

Did you set the LogService.loggerName property to match your log.properties
file? 

 

Otherwise, could you try to use the new programmatic log control added to
Engine class in version 2.1?

 

See this document, “Programmatic configuration” section:

http://wiki.restlet.org/docs_2.1/13-restlet/275-restlet/311-restlet/101-rest
let.html

 

Thanks,

Jerome

--

 <http://www.restlet.com/> http://www.restlet.com

 <http://twitter.com/#!/jlouvel> http://twitter.com/#!/jlouvel

 

 

De : adrien ruffie [mailto:[email protected]] 
Envoyé : lundi 15 octobre 2012 11:19
À : [email protected]
Objet : Don't have more logs

 

Hello all I have a problem in my application.

I use log4j and Restlet, but I think Restlet not log all that should …

 

I often have 2 poor logs lines, example:

15 oct. 2012 10:57:30 org.restlet.engine.http.connector.HttpClientHelper
start

INFO: Starting the default HTTP client

15 oct. 2012 10:57:30 org.restlet.engine.http.connector.HttpClientHelper
stop

INFO: Stopping the default HTTP client 

 

Or:

 

15 oct. 2012 10:54:47 org.restlet.engine.log.LogFilter afterHandle

INFO: 2012-10-15    10:54:47     127.0.0.1    e-deal 127.0.0.1    8080
POST       /Hub/service/urltracking/TRACKURL -      200    36     56
14021  http://localhost:8080       Restlet-Framework/2.0.8    -

15 oct. 2012 10:54:47 org.restlet.ext.net.HttpClientHelper stop

INFO: Stopping the HTTP client

 

not super useful trick I like to have more logs, to really see if something
really happens. Is there a way to log as possible?

 

For example I my log4j.properties I have these following lines, but nothing
happens, it continued to remain at INFO Level:

 

############################################################################
###

# Loguer dans la console

############################################################################
###

log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender

log4j.logger.com.edeal.frontline.services.cti.impl.algoria=ERROR

log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout

log4j.appender.CONSOLE.layout.ConversionPattern=%d %-4r [%t] %-5p %c %x -
%m%n

log4j.org.restlet=FINEST, CONSOLE

log4j.logger.org.restlet=FINEST, CONSOLE

logger.org.restlet=FINEST, CONSOLE

org.restlet=FINEST, CONSOLE

 

# ------------------

# Loggers properties

# ------------------

 

.level=FINEST

org.mortbay.level=FINEST

org.restlet.level=FINEST

com.noelios.level=FINEST

 

com.noelios.web.WebComponent.www.level=FINEST

com.noelios.web.WebComponent.www.useParentHandlers=true

 

 

 

Thank and best regards,

 

Bien cordialement,
 


 <http://e-deal.biz/kd/9eZ> E-DEAL

 <http://e-deal.biz/kd/UOh> Twitter <http://e-deal.biz/kd/X9Q> Facebook
<http://e-deal.biz/kd/bTG> RSS


Adrien RUFFIE
Ingénieur R&D 


40, rue du Village d’Entreprises
31670 Labège
 <http://www.e-deal.com/> www.e-deal.com 

 
LD : +33 1 73 03 29 50
Std : +33 1 73 03 29 80
Fax : +33 1 73 01 69 77
 <mailto:[email protected]> [email protected] 


E-DEAL soutient le  <http://e-deal.biz/kd/mPQ> Pacte Mondial de l'ONU

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3021226

<<attachment: image001.png>>

<<attachment: image002.png>>

<<attachment: image003.png>>

<<attachment: image004.png>>

Reply via email to