mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
30 lines
409 B
Go
30 lines
409 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
|
||
|
"github.com/matrix-org/dendrite/internal/config"
|
||
|
"gopkg.in/yaml.v2"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
cfg := &config.Dendrite{}
|
||
|
cfg.Defaults()
|
||
|
cfg.Logging = []config.LogrusHook{
|
||
|
{
|
||
|
Type: "file",
|
||
|
Level: "info",
|
||
|
Params: map[string]interface{}{
|
||
|
"path": "/var/log/dendrite",
|
||
|
},
|
||
|
},
|
||
|
}
|
||
|
|
||
|
j, err := yaml.Marshal(cfg)
|
||
|
if err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
|
||
|
fmt.Println(string(j))
|
||
|
}
|