You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
432 B
24 lines
432 B
package output |
|
|
|
import ( |
|
"errors" |
|
"go-common/app/service/ops/log-agent/conf/configcenter" |
|
) |
|
|
|
const ( |
|
lancerConfig = "output.toml" |
|
) |
|
|
|
// ReadConfig read config for default output |
|
func ReadConfig() (value string, err error) { |
|
var ok bool |
|
|
|
// logLevel config |
|
if value, ok = configcenter.Client.Value(lancerConfig); !ok { |
|
return "", errors.New("failed to get output.toml") |
|
} else { |
|
return value, nil |
|
} |
|
|
|
return value, nil |
|
}
|
|
|