Reviewed-on: #15 Co-authored-by: andrey <andrey@4devs.io> Co-committed-by: andrey <andrey@4devs.io>
18 lines
258 B
Go
18 lines
258 B
Go
package otel
|
|
|
|
import (
|
|
"context"
|
|
|
|
"gitoa.ru/go-4devs/log"
|
|
"gitoa.ru/go-4devs/log/entry"
|
|
)
|
|
|
|
// Deprecated: delete after 0.7.0
|
|
func New() log.Logger {
|
|
return func(ctx context.Context, e *entry.Entry) (int, error) {
|
|
addEvent(ctx, e)
|
|
|
|
return 0, nil
|
|
}
|
|
}
|