Skip to content

Commit

Permalink
remove obsolete logger documentation from the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
reugn committed Jan 31, 2025
1 parent c2a22f3 commit 229fb58
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,19 +119,6 @@ The scheduler can use its own implementation of `quartz.JobQueue` to allow state
An example implementation of the job queue using the file system as a persistence layer
can be found [here](./examples/queue/file_system.go).

## Logger

To set a custom logger, use the `logger.SetDefault` function.
The argument must implement the `logger.Logger` interface.

The following example shows how to disable library logs.

```go
import "github.com/reugn/go-quartz/logger"

logger.SetDefault(logger.NewSimpleLogger(nil, logger.LevelOff))
```

## Examples

```go
Expand Down
2 changes: 1 addition & 1 deletion logger/logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func TestLogger_SimpleOff(t *testing.T) {
assertEmpty(t, &b)
}

func TestLogger_NoOp(t *testing.T) {
func TestLogger_NoOp(_ *testing.T) {
logger := l.NoOpLogger{}

logger.Trace("Trace")
Expand Down

0 comments on commit 229fb58

Please sign in to comment.