top
(README.md)
# RemoteDebugCenter

Debug tool with live logging. You can `POST` key/value messages. And fetch them with a web UI.

## Dependencies

* Redis

## Build

[![Gobuild Download](http://beta.gobuild.io/badge/github.com/Xotelia/RemoteDebugCenter/download.png)](http://beta.gobuild.io/github.com/Xotelia/RemoteDebugCenter)

## Install

Extract the archive. Launch `RemoteDebugCenter`.
By default the Remote debug center listen to port `4242`. You can change it by passing `-port=:<port>`.
By default the Remote debug center initialize a connection to redis on `localhost:6379`. Yout can change it by passing `-redis-url=<host>:<port>`.

## API

### Homepage

The entry point is `/`. Inside the template a `Websocket` call is made to `/feed` to stream the logs

### Feed

The entry point is `/feed`. It streams the logs through websocket.

### Debug

The entry point is `/debug`. It handle the messages sent by any application and pushes them to redis.

```
curl -X POST http://localhost:4242/debug -d "some message"
```

Or you POST in JSON format:

```
curl -X POST http://localhost:4242/debug -d "{\"raw\": \"some message\"}"
```

Imports 4 package(s) ΒΆ

  1. github.com/garyburd/redigo/redis
  2. github.com/gorilla/websocket
  3. github.com/go-martini/martini
  4. github.com/martini-contrib/render