https://github.com/taigrr/log-socket
Client-server model for logging. Designed to work well with websockets. Simple client page included.
https://github.com/taigrr/log-socket
go golang hacktoberfest logging-library websocket
Last synced: 14 days ago
JSON representation
Client-server model for logging. Designed to work well with websockets. Simple client page included.
- Host: GitHub
- URL: https://github.com/taigrr/log-socket
- Owner: taigrr
- License: 0bsd
- Created: 2021-04-09T07:10:04.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-02T06:21:50.000Z (over 2 years ago)
- Last Synced: 2025-01-17T00:19:44.575Z (over 1 year ago)
- Topics: go, golang, hacktoberfest, logging-library, websocket
- Language: Go
- Homepage:
- Size: 47.9 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
log-socket
==========
`log-socket` is a drop-in replacement for Go's `log` package that allows for streaming of logs via WebSockets.
## Installation
To install the library:
`go get github.com/taigrr/log-socket`
## Running
To run a demo of this library:
`go run main.go`
This demo will do a sample of every log type and push results to `0.0.0.0:8080`. Once running, you can open a browser and navigate to
`0.0.0.0:8080` to see an example implementation of how logs are streamed.