# lualog

> Lua log server

Latest version **0.1.2** (published 2018-09-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install lualog
pnpm add lualog
yarn add lualog
bun add lualog
```

Provides the command `lualog`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2018-09-05 |
| First published | 2018-09-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 11 |
| Unpacked size | 13 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | he110world |
| Keywords | cli, command |

## Links

- npm: https://www.npmjs.com/package/lualog
- Repository: https://github.com/he110world/lualog
- Homepage: https://github.com/he110world/lualog#readme
- Issues: https://github.com/he110world/lualog/issues
- npm.io page: https://npm.io/package/lualog

## Dependencies (11)

- [async](https://npm.io/package/async.md) ^2.6.1
- [union](https://npm.io/package/union.md) ^0.4.6
- [colors](https://npm.io/package/colors.md) ^1.3.2
- [corser](https://npm.io/package/corser.md) ^2.0.1
- [opener](https://npm.io/package/opener.md) ^1.5.1
- [director](https://npm.io/package/director.md) ^1.2.8
- [ecstatic](https://npm.io/package/ecstatic.md) ^3.3.0
- [optimist](https://npm.io/package/optimist.md) ^0.6.1
- [dateformat](https://npm.io/package/dateformat.md) ^3.0.3
- [http-proxy](https://npm.io/package/http-proxy.md) ^1.17.0
- [portfinder](https://npm.io/package/portfinder.md) ^1.0.17

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2018-09-05
- 0.1.1 — 2018-09-04
- 0.1.0 — 2018-09-04

## README

## Installation:

     sudo npm i lualog -g

In case you don't have node.js installed, you should run the following commands first:

     curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -

     sudo apt install -y nodejs build-essential

Or you can just execute the follow commands:

     curl -s https://raw.githubusercontent.com/he110world/lualog/master/install.sh | bash

## Usage:

     lualog [path] [options]

Both [path] and [options] are optional.

You can POST to http://<server-address>:<server-port>/lualog/<user_id> to add or append to logs

You can GET the log list from http://<server-address>:<server-port>/lualog

Click the log link to view the log

## Available Options:

`-p` Port to use (defaults to 8080)

`-a` Address to use (defaults to 0.0.0.0)

`-d` Show directory listings (defaults to `true`)

`-i` Display autoIndex (defaults to `true`)

`-g` or `--gzip` When enabled (defaults to `false`) it will serve `./public/some-file.js.gz` in place of `./public/some-file.js` when a gzipped version of the file exists and the request accepts gzip encoding.

`-e` or `--ext` Default file extension if none supplied (defaults to `html`)

`-s` or `--silent` Suppress log messages from output

`--cors` Enable CORS via the `Access-Control-Allow-Origin` header

`-o` Open browser window after starting the server

`-c` Set cache time (in seconds) for cache-control max-age header, e.g. `-c10` for 10 seconds (defaults to `3600`). To disable caching, use `-c-1`.

`-U` or `--utc` Use UTC time format in log messages.

`-P` or `--proxy` Proxies all requests which can't be resolved locally to the given url. e.g.: -P http://someurl.com

`-S` or `--ssl` Enable https.

`-C` or `--cert` Path to ssl cert file (default: `cert.pem`).

`-K` or `--key` Path to ssl key file (default: `key.pem`).

`-r` or `--robots` Provide a /robots.txt (whose content defaults to `User-agent: *\nDisallow: /`)

`-h` or `--help` Print this list and exit.

---
_Source: https://npm.io/package/lualog · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
