[webbeans-dev] Documentation

Pete Muir pmuir at redhat.com
Sun Mar 29 17:53:04 EDT 2009


Yes. Essentially identical to the Seam logger in other respects  
(delegation to JUL or log4j, interpolation of parameters).


@Produces @Logger
    public Log produceLog(@Current InjectionPoint injectionPoint)
    {
       Log log = null;
       String category = null;
       category = injectionPoint.getAnnotation(Logger.class).value();
       if (category.isEmpty())
       {
          log = Logging.getLog((Class<?>)  
injectionPoint.getMember().getDeclaringClass());
       }
       else
       {
          log = Logging.getLog(category);
       }
       return log;
    }

On 29 Mar 2009, at 18:15, Gavin King wrote:

> Tell me more about the "Web Beans Logger". Is this using the pattern I
> described in the blog, i.e. using InjectionPoint?
>
> On Sat, Mar 28, 2009 at 8:03 PM, Pete Muir <pmuir at redhat.com> wrote:
>> I've split out some reference docs for Web Beans into Part 5
>> (http://docs.jboss.org/webbeans/reference/snapshot/en-US/html/pt05.html 
>> ).
>>
>> You'll notice a number of TODOs which it would be great if the  
>> relevant
>> people could fill in. If you need help with how to write docs, ping  
>> me.
>>
>> * Web Beans in GlassFish (3.3, 16.2) - Roger
>> * Web Beans with Java SE (16.4) - Pete Royle
>> * @Logger (17.1) - David
>> * XSD generator (17.2) - Nik
>>
>> Thanks!
>>
>>
>> --
>> Pete Muir
>> http://www.seamframework.org
>> http://in.relation.to/Bloggers/Pete
>>
>> _______________________________________________
>> webbeans-dev mailing list
>> webbeans-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/webbeans-dev
>>
>
>
>
> -- 
> Gavin King
> gavin.king at gmail.com
> http://in.relation.to/Bloggers/Gavin
> http://hibernate.org
> http://seamframework.org

--
Pete Muir
http://www.seamframework.org
http://in.relation.to/Bloggers/Pete




More information about the weld-dev mailing list