From 2cca094aa8b73f0f4e48deeefa0145dc361904c0 Mon Sep 17 00:00:00 2001 From: Brian Tiger Chow Date: Mon, 2 Feb 2015 17:42:54 -0800 Subject: [PATCH] go-ipfs-config: feat(fsrepo) add eventlog config to repo/config struct --- config/config.go | 1 + config/log.go | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 config/log.go diff --git a/config/config.go b/config/config.go index e912429cd..f214b513b 100644 --- a/config/config.go +++ b/config/config.go @@ -24,6 +24,7 @@ type Config struct { Bootstrap []string // local nodes's bootstrap peer addresses Tour Tour // local node's tour position Gateway Gateway // local node's gateway server options + Log Log } const ( diff --git a/config/log.go b/config/log.go new file mode 100644 index 000000000..50e7243d4 --- /dev/null +++ b/config/log.go @@ -0,0 +1,8 @@ +package config + + +type Log struct { + MaxSizeMB uint64 + MaxBackups uint64 + MaxAgeDays uint64 +}