Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-18

misleading marker section in the demo

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • None
    • None
    • logback-site
    • None
    • Operating System: Windows
      Platform: PC

    • 44

    Description

      I've followed the logback classic demo and it works pretty well, and is quite easy to understand. The only thing with which I had trouble is the Marker part.

      First in this section we use a turbo filter to filter out the TRACE logs, but they are already filtered by the expression setup on the CYCLIC appender. So I first commented again the CYCLIC with evaluator and put back CYCLIC alone (fortunately I didn't delete the definition as suggested when uncommenting CYCLIC with evaluator).

      Then my trouble was due to the reload configuration (I think). As suggested I used the reload configuration but it didn't work, the logs were still present. After a quick investigation I decided to modify the target/classes/logback.xml instead of src/main/resources/logback.xml, hit reload again and it worked. Maybe it was only my lucky day, but I'm not too much surprised it worked only like that. The other solution is to restart the server as usual, but it's sensible to show that you can easily reload configuration.

      Attachments

        Activity

          People

            logback-dev Logback dev list
            xavier.hanin@gmail.com Xavier Hanin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: