Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4741

Emit logs with native Lua functions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • sometime
    • Logging
    • None

    Description

      Starting with TS-4548, we have Lua configuration for setting up logging objects. The next step is to find a way to let operators write a Lua function to generate the actual log lines. This would let you perform log filtering, etc. in Lua and make arbitrary calls to Lua functions when generating the log entries.

      To get this to work, the main challenges are Lua state management (one state per loggin thread maybe? how would config reload work?) and the API around exposing logging tags (magic table indexes named after the tags?).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jamespeach James Peach
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: