项目作者: neogeek

项目描述 :
📝 A simple log aggregation tool.
高级语言: JavaScript
项目地址: git://github.com/neogeek/lumberlogs.git
创建时间: 2018-07-24T21:33:51Z
项目社区:https://github.com/neogeek/lumberlogs

开源协议:

下载


LumberLogs

📝 A simple log aggregation tool.

Install

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

Usage

Bash

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

JavaScript

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

Unity

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

Build

Install required packages via node.

  1. $ npm install

Test the application.

  1. $ npm start

Build the application.

  1. $ npm run build