Not sure if logging works as expected

Splash Forums PrettyFaces Users Not sure if logging works as expected

This topic contains 2 replies, has 3 voices, and was last updated by  JonH 6 years, 6 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17821

    jbulck
    Participant

    Hi all,

    I have PrettyFaces up and running and it seems to work fine.

    I also enabled DEBUG level logging and this is what I get for a single URL map occurrence:

    <br />
    21:21:12,182 DEBUG [com.ocpsoft.pretty.faces.config.annotation.PackageFilter] No package filter specified!<br />
    21:21:12,196 DEBUG [com.ocpsoft.pretty.faces.el.resolver.FacesConfigBeanNameResolver] Found 0 bean names in faces configuration.<br />
    21:21:12,196 DEBUG [com.ocpsoft.pretty.faces.el.resolver.SpringBeanNameResolver] WebApplicationContext not found in ServletContext. Resolver has been disabled.<br />
    21:21:12,196 DEBUG [com.ocpsoft.pretty.faces.el.resolver.SeamBeanNameResolver] Seam class has not been found. Seam resolver will be disabled.<br />
    21:21:12,196 DEBUG [com.ocpsoft.pretty.faces.el.resolver.CDIBeanNameResolver] CDI environment detected. Enabling bean name resolving via BeanManager.<br />
    21:21:12,260 DEBUG [com.ocpsoft.pretty.PrettyFilter] Character encoding: null<br />
    21:21:12,260 DEBUG [com.ocpsoft.pretty.PrettyFilter] Character encoding: null<br />

    Lots of information but no indication of the actual mapping. You know the kind of information you would expect: source-url, target-url, mapping-id…

    Is this normal? Or can I get that useful bit of extra information?

    Anyway, cool library!

    Thank you!

    J.

    #20420

    You could try to set the log level to TRACE for com.ocpsoft.pretty.PrettyFilter. I think this will add some log statements regarding the current mapping!

    #20421

    JonH
    Participant

    Indeed it will

    TRACE; Nov 23, 2010 18:29:48 PM; tid:http-8080-1; PrettyFilter – Sending mapped request [/tomahawkTest] to resource [/tomahawkTest.jsf]

    DEBUG; Nov 23, 2010 18:29:48 PM; tid:http-8080-1; PrettyFilter – Character encoding: null

    TRACE; Nov 23, 2010 18:29:48 PM; tid:http-8080-1; PrettyContext – Retrieved PrettyContext from Request

    TRACE; Nov 23, 2010 18:29:48 PM; tid:http-8080-1; PrettyFilter – Request is not mapped using PrettyFaces. Continue.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

Comments are closed.