github.com/ethereumproject/go-ethereum@v5.5.2+incompatible/cmd/geth/mlog.go (about) 1 package main 2 3 import ( 4 "github.com/ethereumproject/go-ethereum/logger" 5 ) 6 7 var mlogClient = logger.MLogRegisterAvailable("client", mlogLinesClient) 8 9 var mlogLinesClient = []*logger.MLogT{ 10 mlogClientStartup, 11 mlogClientShutdown, 12 } 13 14 var clientDetails = []logger.MLogDetailT{ 15 {Owner: "CLIENT", Key: "SERVER_ID", Value: "STRING"}, 16 {Owner: "CLIENT", Key: "SERVER_NAME", Value: "STRING"}, 17 {Owner: "CLIENT", Key: "SERVER_ENODE", Value: "STRING"}, 18 {Owner: "CLIENT", Key: "SERVER_IP", Value: "STRING"}, 19 {Owner: "CLIENT", Key: "SERVER_MAXPEERS", Value: "INT"}, 20 21 {Owner: "CLIENT", Key: "CONFIG_CHAINNAME", Value: "QUOTEDSTRING"}, 22 {Owner: "CLIENT", Key: "CONFIG_CHAINID", Value: "INT"}, 23 {Owner: "CLIENT", Key: "CONFIG_NETWORK", Value: "INT"}, 24 25 {Owner: "CLIENT", Key: "MLOG_COMPONENTS", Value: "STRING"}, 26 27 {Owner: "CLIENT", Key: "IDENTITY", Value: "OBJECT"}, 28 } 29 30 var mlogClientStartup = &logger.MLogT{ 31 Description: `Called when the geth client starts up.`, 32 Receiver: "CLIENT", 33 Verb: "START", 34 Subject: "SESSION", 35 Details: clientDetails, 36 } 37 38 var mlogClientShutdown = &logger.MLogT{ 39 Description: "Called when the geth client shuts down because of an interceptable signal, eg. SIGINT.", 40 Receiver: "CLIENT", 41 Verb: "STOP", 42 Subject: "SESSION", 43 Details: append(clientDetails, 44 []logger.MLogDetailT{ 45 {Owner: "STOP", Key: "SIGNAL", Value: "STRING"}, 46 {Owner: "STOP", Key: "ERROR", Value: "STRING_OR_NULL"}, 47 {Owner: "CLIENT", Key: "DURATION", Value: "INT"}}...), 48 }