logserver

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2018 License: MIT Imports: 2 Imported by: 0

README

log-backend

a log backend for neo-cli with logbackendplugin

requisite

install go at least v1.10

installation

configuration

after installation, configure your this application in config.json

{
    "name": "ngd",//the name of your node, let partners to recognize you
    "cnport": 8080, //the port to receive log from cn-node and partners
    "webport": 8081,//the port to solve web api request
    "logpath": "./persist",//directory to store the log
    "logname": "concensus.log",//log file name
    "logfileexpire": 30,//day, how many days you want to store the log
    "logfilesplit": 1,//hour, how many hours to split the file
    "sendto":[//partners you want to send your log
           "http://ngd1.logbackend:8081"
    ]
}

if you want to send your cn-node logs to partners, set your partners log-backend url in "sendto" set your node name to let partners recognize you, you can not use "" and "local", becase local is reserved for your cn-node, partners' logs using their names setting in Http Header "From"

start

go run main.go

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL