(DISCONTINUED - MOVED TO: https://github.com/prsolucoes/logstack)
To run you need a MongoDB running on localhost:
- Start your mongodb
- Create a database with name: WebRemoteLog
- Execute: git clone git@github.com:prsolucoes/WebRemoteLog-Go.git
- Execute: cd WebRemoteLog-Go
- Execute: ./commands/install-go-deps.sh
- Execute: ./commands/start.sh
- Open in your browser: http://localhost:8080
** The application will try connect on your localhost mongdb
- List(GET): http://localhost:8080/api/log/list?token=[put-your-token-here]&created_at=[start-date-log-optional]
- Add(POST): http://localhost:8080/api/log/add [token, type, message]
- DeleteAll(GET): http://localhost:8080/api/log/deleteAll [token]
- StatsByType(GET): http://localhost:8080/api/log/statsByType [token]
- token = your session token, because you can see only logs from specific session token.
- type = can be any knew type of level log (error, fatal, info, warning, trace, debug, verbose, echo, warning, success)
- message = any log message
Inside "commands" directory, you have some command line interface to make something automatic, like start, stop and update from git repository.
- start = it will kill current WebRemoteLog-Go process and start again
- stop = it will kill current WebRemoteLog-Go process
- update = it will update code from git, rebuild the service and restart the service for you
So if you want start your server, you can use "start" command to do it for you.
- go build
- ./WebRemoteLog-Go
You dont need refresh your browser, everything is updated in real time.
You can leave the stats charts opened in one browser window for example and see the chart being refreshed in real time.
MIT