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

Let the Lua format() function accept a single string

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 7.1.0
    • Logging, Lua
    • None

    Description

      In logging.config, the format option to the log.binary functions can be a string or a LogFormat object returned from the format() function. It would be convenient to let format() take a string rather than a table to simplify the common case of non-interval formats.

      This:

      foo = format("my string")
      

      rather than this:

      foo = format{ Format = "my string" }
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: