I checked slf4j sourcecode,there has a Logger interface
implement:org.slf4j.impl.Log4jLoggerAdapter
but how to bind them together and make a inject? need improve
AppModule's function?
I don't know why tapestry hadn't done it for user? need help too...

On Tue, Sep 22, 2009 at 11:16 AM, cleverpig <greatclever...@gmail.com> wrote:
> i always use log4j for a long time.and now i will change to new weapon--slf4j!
>
> i use @inject annotation to request this slf4j logging service:
> public class Start{
> ...
>       �...@inject
>        private Logger log;
> ...
> }
> but got a expection:
> No service implements the interface org.slf4j.Logger
> ...
>
> i found some little words about
> slf4j:http://tapestry.apache.org/tapestry5.1/guide/logging.html
>
> "Logging of Tapestry Components and Pages
> Tapestry makes extensive use of SLF4J to log details about the
> creation and operation of your page and component classes.
> The default configuration for logging uses Log4J as the logging
> toolkit, though this can be changed."
>
> but "this can be changed" page link is invalid.
>
> somebody help me?give me example to fire a light in my darkness. :)
>
> --
> cleverpig(Dan)
> Location: Beijing
> Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
> Zipcode: 100031
> MSN: great_liu...@hotmail.com
> QQ: 149291732
> Skype: cleverpigatmatrix
> Facebook ID:cleverpig
> Blog: www.cleverpig.name
> Tags: del.icio.us/cleverpig
> Twitter: twitter.com/cleverpig
> 新浪微博: t.sina.com.cn/cleverpig
> Organization: www.beijing-open-party.org
> or...@facebook: http://www.facebook.com/group.php?gid=8159558294
>



-- 
cleverpig(Dan)
Location: Beijing
Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
Zipcode: 100031
MSN: great_liu...@hotmail.com
QQ: 149291732
Skype: cleverpigatmatrix
Facebook ID:cleverpig
Blog: www.cleverpig.name
Tags: del.icio.us/cleverpig
Twitter: twitter.com/cleverpig
新浪微博: t.sina.com.cn/cleverpig
Organization: www.beijing-open-party.org
or...@facebook: http://www.facebook.com/group.php?gid=8159558294

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to