mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-13 23:31:34 +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))
|
||
|
}
|