izumi icon indicating copy to clipboard operation
izumi copied to clipboard

Better templates

Open pshirshov opened this issue 6 years ago • 0 comments

Templating support is dirty and not flexible enough

  • [ ] We need to support thread id and thread name separatedly
  • [ ] We need to come up with a better formatter patterns
  • [ ] We should allow user to support more formatting rules
  • [ ] Static configs are inconvenient to work with. I think we should "register" logger components and use shorthand names (or introduce aliases, in worst case - play with hocon expansions)

Formatting rules:

  • [x] Maximum width and ellipsing on/off
  • [x] Minimization on/off, how many elements to leave at the right side
  • [ ] Suggested width + left/right alignment (with and without trimming/ellipsing)
  • [ ] Optionally use unicode dots symbol instead of ... for ellipsing
  • [ ] Platform-independent coloring (${red}something${clear})

Maybe we shouldn't bother with cryptic format and use smth like ${id}[ellipsis=on, limit=10, align=left], etc

pshirshov avatar Aug 14 '18 17:08 pshirshov