oh,thanks for your reply,Alfonso!
just now,i get know i need a slf4j implementation.i found a
implementation class from slf4j.jar:org.slf4j.impl.Log4jLoggerAdapter.
but how to declare the binding of them? what's need to add in the AppModule?
you get work with slf4j & tapestry5?please show me some example... :)

On Wed, Sep 23, 2009 at 1:31 AM, Alfonso Quiroga <alfonsose...@gmail.com> wrote:
> You need an implementation of slf4j, there are a lot. I use
> slf4j-log4j12.1.5.2 (it's a bridge between slf4j and log4j)
>
> Check this blog:
> http://fernandoribeiro.eti.br/2006/05/24/how-to-use-slf4j-with-log4j/
>
> On Tue, Sep 22, 2009 at 4:36 AM, cleverpig <greatclever...@gmail.com> wrote:
>> 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
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
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