1
0
mirror of https://github.com/taigrr/log-socket synced 2025-01-18 04:53:14 -08:00

Compare commits

...

5 Commits

Author SHA1 Message Date
f114098a8c
uodate go version 2023-08-26 22:00:42 -07:00
Ethan Holz
2571dbe347
Add Github Actions for automated testing (#12)
* ci: Added initial github action for automated testing

* fix: changed go version

* ci: updated to change job name to test
2023-05-13 23:27:20 -07:00
80b80758de
Add Default() func 2023-03-29 14:26:06 -07:00
0fa4de7961
Revert "add ability to embed other loggers of varying functionality"
This reverts commit 50c507c8f4d6939d0feda2a5148800e4c9fc5d19.
2023-03-29 14:06:00 -07:00
50c507c8f4
add ability to embed other loggers of varying functionality 2023-03-29 14:02:57 -07:00
3 changed files with 29 additions and 1 deletions

24
.github/workflows/ci.yaml vendored Normal file
View File

@ -0,0 +1,24 @@
name: Go package
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.16'
- name: Install dependencies
run: go get .
- name: Build
run: go build -v ./...
- name: Test
run: go test -v ./...

2
go.mod
View File

@ -1,5 +1,5 @@
module github.com/taigrr/log-socket
go 1.16
go 1.21
require github.com/gorilla/websocket v1.5.0

View File

@ -7,6 +7,10 @@ import (
"time"
)
func Default() *Logger {
return &Logger{FileInfoDepth: 0}
}
func (l *Logger) SetInfoDepth(depth int) {
l.FileInfoDepth = depth
}