Setting of colorization in pattern
In my simple yaml, I tried to add colorization for the pattern:
{h({d(%Y-%m-%d %H:%M:%S)} [{l:>4.1}])} {m} \t| %c:red({f}:{L})\n
or
{h({d(%Y-%m-%d %H:%M:%S)} [{l:>4.1}])} {m} \t| {c:red({f}:{L})}\n
both of these are not allowed. I saw that this enhancement was added in #5 . Maybe after that 5 years the code is removed and I'm not able to add it to the pattern.
Is there any possibility that the colored output will be added to log4rs? Or is there any way how to do it that I didn't find yet?
If yes, can you please add some mention to the documentation so it will be clear for everyone?
Thanks
@im-konge I think the general consensus is that it would be great to support colorization in the pattern encoder but we have not yet seen a satisfactory implementation. Would you like to take a stab at it? I would be happy to mentor you.
@estk yes, I can take look at it, thanks :)
@im-konge bump
@estk hey! Sorry, I didn't have time for taking a look on this. Hopefully I'll find some free while to start working on this.
anyone interesting in picking this up? https://github.com/estk/log4rs/pull/224