Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 458 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 458 Bytes

Usage

1、mkdir -p /data/logServer

2、cargo run

curl -X POST -d '{"devops": "what are u fucking doing!" }' http://localhost:3000/log

Then, you can get a log file in /data/logServer like 2018-07-25-kong.log

Start With Docker

1、docker build -t log-server .

2、docker run -d -p 3000:3000 -v /data/logServer/:/data/logServer/ log-server

OR

docker run -d -p 3000:3000 -v /data/logServer/:/data/logServer/ makcy/log-server