/lumberlogs

📝 A simple log aggregation tool.

Primary LanguageJavaScript

LumberLogs

📝 A simple log aggregation tool.

Install

Download the latest from https://github.com/neogeek/lumberlogs/releases

Usage

Bash

$ curl -H "content-type:text/plain" -d "Hello, world." http://localhost:1234/log
$ curl -H "content-type:application/json" -d "{\"message\":\"Hello, world.\"}" http://localhost:1234/log

JavaScript

fetch('http://localhost:1234/log', {
    method: 'POST',
    body: 'Hello, world.'
});
fetch('http://localhost:1234/log', {
    method: 'POST',
    body: JSON.stringify({ message: 'Hello, world.' }),
    headers: {
        'Content-Type': 'application/json'
    }
});

Unity

Install package via UPM https://gist.github.com/46e7896edaf8a59089b19fb07577555f.git

Build

Install required packages via node.

$ npm install

Test the application.

$ npm start

Build the application.

$ npm run build