M README.md => README.md +8 -0
@@ 3,6 3,14 @@
sls stands for Simple Logging Service. It's a server with an API that
aggregates and broadcasts logs to other services.
+## Install
+
+```
+go get -u egt.run/sls
+```
+
+## Usage
+
### API
```
M cmd/sls/main.go => cmd/sls/main.go +4 -4
@@ 14,10 14,10 @@ import (
"syscall"
"time"
- "git.sr.ht/~egtann/sls"
- "git.sr.ht/~egtann/sls/disk"
- "git.sr.ht/~egtann/sls/google"
- slsHTTP "git.sr.ht/~egtann/sls/http"
+ "egt.run/sls"
+ "egt.run/sls/disk"
+ "egt.run/sls/google"
+ slsHTTP "egt.run/sls/http"
)
func main() {
M disk/file.go => disk/file.go +1 -1
@@ 12,7 12,7 @@ import (
"sync"
"time"
- "git.sr.ht/~egtann/sls"
+ "egt.run/sls"
)
// Options in the disk's target config.
M go.mod => go.mod +1 -1
@@ 1,4 1,4 @@
-module git.sr.ht/~egtann/sls
+module egt.run/sls
go 1.13
M google/stackdriver.go => google/stackdriver.go +1 -1
@@ 8,7 8,7 @@ import (
"time"
"cloud.google.com/go/logging"
- "git.sr.ht/~egtann/sls"
+ "egt.run/sls"
"google.golang.org/api/option"
)
M http/service.go => http/service.go +1 -1
@@ 7,7 7,7 @@ import (
"net/http"
"strings"
- "git.sr.ht/~egtann/sls"
+ "egt.run/sls"
)
type Service struct {