Support with donation
To run you need a MongoDB running on localhost:
- Start your mongodb
- Create a database with name: WebRemoteLog
- Execute: git clone firstname.lastname@example.org: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
Command line interface
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.
Alternative method to Build and Start project
- go build
Updates In Real Time
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.