nekrassov01 / access-log-parser

Simple access log parser utilities for golang
https://pkg.go.dev/github.com/nekrassov01/access-log-parser
MIT License
1 stars 0 forks source link

Add `io.Reader` support #1

Closed dwisiswant0 closed 6 months ago

dwisiswant0 commented 7 months ago

Hey @nekrassov01,

First of all, your project is dope!

I used to utilize with gonx before, because it was easy to work with. The smooth transformation of $label format into regEx made it super user-friendly.

Any chance you could add support for io.Reader to pull in log Data? Or maybe introduce a new API for ParseStdin? I'm thinking of revamping teler IDS using this library, and I've already started reworking it from scratch^1.

Thanks! dw1

nekrassov01 commented 7 months ago

Thank you.

Yes, I knew it would be nice to have the ability to parse logs in real time, and I was planning on doing that eventually.

I haven't figured out how I'm going to design it yet, but I'm going to get to it in between other projects.

nekrassov01 commented 6 months ago

@dwisiswant0

A new version of this module is almost complete.

Most of my concerns have been revamped. However, there are a number of changes to method signatures. Also, the Parse method now assumes stream processing.

If it looks OK after using it for a while, I will merge it.

nekrassov01 commented 6 months ago

@dwisiswant0

I've been making quite a few changes for a while, but I've found a compromise and have merged them into main and released 0.0.18.

I would be happy to have my code incorporated, so please use it!

dwisiswant0 commented 6 months ago

Thank you for your efforts in getting my request done, @nekrassov01 - I really appreciate it!