mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-25 22:19:22 -06:00
This add a new service "idm" providing and LDAP service (via ldaps) on port 9235. If not existing it will bootstrap an initial LDAP tree and administrative user as well as a self-signed Certificate and Key (similar to what is done for glauth).
18 lines
381 B
Go
18 lines
381 B
Go
package logging
|
|
|
|
import (
|
|
"github.com/owncloud/ocis/idm/pkg/config"
|
|
"github.com/owncloud/ocis/ocis-pkg/log"
|
|
)
|
|
|
|
// LoggerFromConfig 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),
|
|
)
|
|
}
|