@cryptotaxi247 / kubo / commits / 843cc85ed

go-ipfs-config: refactor(eventlog) integrate into fsrepo

now, eventlogger works wherever the fsrepo is used

Brian Tiger Chow committed Jan 24, 2015 at 01:20 UTC 843cc85edec6135f40f02f91caf4285f0c1c3c49
2 files changed -18
config/config.go
-1
@@ -23,7 +23,6 @@ type Config struct {
23 Version Version // local node's version management
24 Bootstrap []BootstrapPeer // local nodes's bootstrap peers
25 Tour Tour // local node's tour position
26 - Logs Logs // local node's event log configuration
26 }
27
28 const (
config/logs.go
-17
@@ -1,18 +1 @@
1 package config
2 -
3 -// LogsDefaultDirectory is the directory to store all IPFS event logs.
4 -var LogsDefaultDirectory = "logs"
5 -
6 -// Logs tracks the configuration of the event logger
7 -type Logs struct {
8 - Filename string
9 - MaxSizeMB uint64
10 - MaxBackups uint64
11 - MaxAgeDays uint64
12 -}
13 -
14 -// LogsPath returns the default path for event logs given a configuration root
15 -// (set an empty string to have the default configuration root)
16 -func LogsPath(configroot string) (string, error) {
17 - return Path(configroot, LogsDefaultDirectory)
18 -}