mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-24 05:51:33 -05:00
* experimental search backport fix basic extractor resource name move escapeQuery regex into global variable minor pr review changes rename DebounceDuration env variable add document title and content when rebuilding bleve resource Co-authored-by: David Christofas <dchristofas@owncloud.com>
18 lines
392 B
Go
18 lines
392 B
Go
package logging
|
|
|
|
import (
|
|
"github.com/owncloud/ocis/v2/ocis-pkg/log"
|
|
"github.com/owncloud/ocis/v2/services/search/pkg/config"
|
|
)
|
|
|
|
// Configure initializes a service-specific logger instance.
|
|
func Configure(name string, cfg *config.Log) log.Logger {
|
|
return log.NewLogger(
|
|
log.Name(name),
|
|
log.Level(cfg.Level),
|
|
log.Pretty(cfg.Pretty),
|
|
log.Color(cfg.Color),
|
|
log.File(cfg.File),
|
|
)
|
|
}
|