phuslu / log

Fastest structured logging
MIT License
672 stars 44 forks source link

Plans for supporting Unstructured Logging #76

Closed LutherLee closed 3 months ago

LutherLee commented 4 months ago

May I know if there are plans to support unstructured logging with async support?

phuslu commented 4 months ago

I tried (let AsyncWriter to be an io.Writer) but the initial implementation is a bit dirty.

Let me consider it again in later days, thanks.

phuslu commented 4 months ago

Just now I committed a standalone io.Writer named AsyncIOWriter

Although it's a bit repeatable, but I think it more clean than impalement it in original AsyncWriter.

You can have a try go get github.com/phuslu/log@master if you want, I will continue the tweaking.