mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-26 16:21:55 -06: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))
|
||
|
}
|