File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import (
19
19
"github.com/lomik/zapwriter"
20
20
)
21
21
22
+ // App is an application object used in main
22
23
type App struct {
23
24
sync.RWMutex
24
25
Config * Config
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import (
15
15
)
16
16
17
17
const (
18
+ // MetricEndpointLocal used to send metrics in the carbon-clickhouse itself
18
19
MetricEndpointLocal = "local"
19
20
)
20
21
@@ -192,13 +193,14 @@ func NewConfig() *Config {
192
193
return cfg
193
194
}
194
195
196
+ // NewLoggingConfig returns the zapwriter.Config with logging into "/var/log/carbon-clickhouse/carbon-clickhouse.log"
195
197
func NewLoggingConfig () zapwriter.Config {
196
198
cfg := zapwriter .NewConfig ()
197
199
cfg .File = "/var/log/carbon-clickhouse/carbon-clickhouse.log"
198
200
return cfg
199
201
}
200
202
201
- // PrintConfig ...
203
+ // PrintDefaultConfig ...
202
204
func PrintDefaultConfig () error {
203
205
cfg := NewConfig ()
204
206
buf := new (bytes.Buffer )
You can’t perform that action at this time.
0 commit comments