Commit 5519210b authored by Xiaohui Chen's avatar Xiaohui Chen Committed by Commit Bot

assistant: config log file size

Bug: None
Test: locally build
Change-Id: I621187794e1261d4fc7c91221dfb5bfaa3eef079
Reviewed-on: https://chromium-review.googlesource.com/c/1266599Reviewed-by: default avatarMuyuan Li <muyuanli@chromium.org>
Commit-Queue: Xiaohui Chen <xiaohuic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#597388}
parent 7958ff94
...@@ -53,6 +53,9 @@ std::string CreateLibAssistantConfig(bool disable_hotword) { ...@@ -53,6 +53,9 @@ std::string CreateLibAssistantConfig(bool disable_hotword) {
logging.SetKey( logging.SetKey(
"directory", "directory",
Value(GetRootPath().Append(FILE_PATH_LITERAL("log")).value())); Value(GetRootPath().Append(FILE_PATH_LITERAL("log")).value()));
// Maximum disk space consumed by all log files. There are 5 rotating log
// files on disk.
logging.SetKey("max_size_kb", Value(3 * 1024));
// Empty "output_type" disables logging to stderr. // Empty "output_type" disables logging to stderr.
logging.SetKey("output_type", Value(Type::LIST)); logging.SetKey("output_type", Value(Type::LIST));
config.SetKey("logging", std::move(logging)); config.SetKey("logging", std::move(logging));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment