Clone live ActionFPS logs into a file.
In order to turn ActionFPS into a platform, we need to share raw logs with the potential users, and we'd also like to do it live because there are some use cases where only live data is useful.
The simplest solution with features like authentication that is available is EventSource over HTTP/S.
EventSource is supported by Node.js and HTML5/Google Chrome, and ActionFPS supplies these events live using an HTTPS endpoint
Scala is chosen as this is what ActionFPS is built on and provides great testing and refactoring capabilities.
Use the pre-built npmjs package.
$ npm install -g actionfps-clone-logs $ touch actionfps.tsv $ actionfps-clone-logs actionfps.tsv Reading file actionfps.tsv... Resuming from time 2016-01-02T03:04:05Z, with 0 lines at this time
An authorization token can be specified via an environment variable:
$ AUTHORIZATION="Bearer xyz..." actionfps-clone-logs actionfps.tsv
This may let you see full IP addresses for example.
You can also place your token in
.netrc as such:
$ cat ~/.netrc machine actionfps.com password xyz...
Default start time
DEFAULT_START_TIME (ISO8601 datetime) can be specified
for a default start of the stream.
This may be useful if you aren't interested in very historical data.
I recommend IntelliJ IDEA.
To continuously test inside SBT, run:
To test app locally, run:
$ sbt publishLocal $ ./bin/actionfps-clone-logs
$ npm publish