https://github.com/gemorroj/gologio
go parsing log files
https://github.com/gemorroj/gologio
Last synced: 3 months ago
JSON representation
go parsing log files
- Host: GitHub
- URL: https://github.com/gemorroj/gologio
- Owner: Gemorroj
- License: mit
- Created: 2019-08-19T19:04:16.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-02-22T13:05:53.000Z (3 months ago)
- Last Synced: 2025-02-22T13:43:36.915Z (3 months ago)
- Language: Go
- Size: 305 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Parser log files
#### Example
```bash
go get github.com/Gemorroj/gologio
``````go
package mainimport (
"fmt"
"gologio/gologio"
"log"
)func main() {
config := gologio.Config{}
gologio.LoadConfig("config.yml", &config)data, err := gologio.Run(config, "php")
if err != nil {
log.Fatalf("Error: %v", err)
}for val := range data {
fmt.Printf("%v", val)
}
}
```