0.5.2 • Published 7 years ago

loxium v0.5.2

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

Loxium - What is it?

Loxium allows you to do so much more than simply log a message, With Loxium not only can you log messages but you can add tags, Properties and enrich your logs with contextual information. It's also built with maximum extensibility allowing you to control where, when and how your logs are sent through it's clean and simple API. Loxium has been heavily influenced by Serilog, a logging package for .Net and my co-workers at Sequensis

Features

  • Supports standard trace/debug/info/warn/error logging levels
  • Works in all modern browsers & node.js
  • Filter logging by level
  • No dependencies,
  • Highly extensible allowing you to take logging further

Example - Browser

let builder = new loxium.LogBuilder();
    
let logger = builder.setMinimumLevel(loxium.LogLevel.Debug)
                    .build();

logger.debug((logBuilder) => logBuilder.withMessage('hello world'));

Output:

  • 17/09/2017, 14:40:16 [Debug] hello world

Example - Node

import { LogBuilder, LogLevel } from 'loxium'

let builder = new LogBuilder();

let logger = builder.setMinimumLevel(LogLevel.Debug)
                    .build();

logger.debug((logBuilder) => logBuilder.withMessage('hello world'));

Output:

  • 17/09/2017, 14:40:16 [Debug] hello world

Installation

Node - npm install loxium

CDN - <script src="https://cdn.jsdelivr.net/npm/loxium@latest/dist/loxium.min.js"></script>

For more advanced examples such as adding properties, tags, contextual information and shipping logs off to a server see docs

0.5.2

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.5.0-gst.70

7 years ago

0.5.0-gst.69

7 years ago

0.4.0

7 years ago

0.4.0-Writers.67

7 years ago

0.3.0-Writers.66

7 years ago

0.3.0-Writers.65

7 years ago

0.3.0

7 years ago

0.3.0-tme.63

7 years ago

0.3.0-tme.70

7 years ago

0.3.0-tme

7 years ago

0.1.1-5.55-docs

7 years ago

0.2.0

7 years ago

0.1.15

7 years ago

0.1.1-5.51-docs

7 years ago

0.1.14

7 years ago

0.1.13

7 years ago

0.1.1-3.46-js

7 years ago

0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago