Skip to content

Commit

Permalink
More readme stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamboy1 committed May 23, 2020
1 parent 7446132 commit 9f9d3a0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# Deno Structured Logging (currently unstable)

[![deno doc](https://doc.deno.land/badge.svg)](https://doc.deno.land/https/raw.githubusercontent.com/Yamboy1/deno-structured-logging/master/mod.ts)
[![deno.land](https://img.shields.io/badge/deno.land-0.4.0-blue)](https://deno.land/x/[email protected].0)
[![deno.land](https://img.shields.io/badge/deno.land-0.4.1-blue)](https://deno.land/x/[email protected].1)

A better logger for deno, with support for structured logging.

## Simple Example
```ts
// Copyright 2020 Yamboy1. All rights reserved. MIT license.

import { createLogger, consoleSink } from "https://deno.land/x/[email protected]/mod.ts";
import { createLogger, consoleSink } from "https://deno.land/x/[email protected]/mod.ts";

const logger = createLogger().addSink(consoleSink());

Expand All @@ -31,7 +29,7 @@ import {
fileSink,
jsonFormat,
textFormat,
} from "https://deno.land/x/[email protected].0/mod.ts";
} from "https://deno.land/x/[email protected].1/mod.ts";

const logger = createLogger({
minimumLevel: LogLevel.INFO,
Expand Down

0 comments on commit 9f9d3a0

Please sign in to comment.