• Stars
    star
    176
  • Rank 209,603 (Top 5 %)
  • Language
    Rust
  • License
    Apache License 2.0
  • Created almost 5 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Not just a pretty (inter)face: pretty-printer + ndjson logger for log crate.

femme

crates.io version build status downloads docs.rs docs

Not just a pretty (inter)face.

A pretty-printer and ndjson logger for the log crate.

Examples

use kv_log_macro as log;

femme::with_level(femme::LevelFilter::Trace);
log::warn!("Unauthorized access attempt on /login");
log::info!("Listening on port 8080");

Prettified output will be displayed when debugging. In release mode, this logger will output to ndjson.

When using Wasm with #[cfg(target_arch = "wasm32")], Wasm logger will be used. Wasm logger uses web_sys crate to send console.log() to JavaScript.

Screenshots

Pretty Output

pretty printed logs

Newline Delimited JSON

ndjson

Installation

$ cargo add femme

License

MIT OR Apache-2.0

More Repositories

1

smol-zines

sketching out concepts one ๐Ÿ“ at a time
513
star
2

pino-colada

cute ndjson formatter for pino ๐ŸŒฒ๐Ÿน
JavaScript
240
star
3

puppeteer-walker

a puppeteer walker ๐Ÿ•ท ๐Ÿ•ธ
JavaScript
79
star
4

house-plants

a growing guide to plants at home
69
star
5

http2-request

super smol http2 request ๐Ÿ“ฆ
JavaScript
49
star
6

nanoidb

fun wrapper around IndexedDB
JavaScript
45
star
7

on-async-hook

async_hook trace emitter ๐Ÿ”
JavaScript
37
star
8

translation-picker

switch between different translations of a term ๐Ÿ…ฐ๏ธ ๐Ÿ…ฑ๏ธ
JavaScript
26
star
9

olivaw

โ– โ–ก elementary cellular automata library โ–กโ– 
JavaScript
23
star
10

cellular-automata

elementary cellular automata example
JavaScript
16
star
11

pgp-encrypt-content

pgp encrypt some content โœŒ๐Ÿฝ ๐Ÿ”
JavaScript
15
star
12

personal-goals

learning goals; reading goals; project goals; all the goals.
15
star
13

travel-spots

travel recommendations โœˆ๏ธ ๐ŸŒ ๐Ÿ
12
star
14

wombat.js

๐Ÿจ wombats wombats wombats in CLI ๐Ÿจ
JavaScript
8
star
15

cats-squared

a simple package to find out cat population growth in your ๐Ÿ 
JavaScript
6
star
16

talks

a repo for talks + slides โœŒ๏ธ
HTML
5
star
17

twitter-node-name

twitter name with node version because why not โœจ
JavaScript
5
star
18

readyou

a tiny module to generate a readme ๐Ÿ“š ๐Ÿ“
JavaScript
5
star
19

number-picker

switch between numbers 1๏ธโƒฃ 2๏ธโƒฃ
JavaScript
3
star
20

dotfiles

.dotfiles
Emacs Lisp
3
star
21

reg-router

simple regex router
JavaScript
2
star
22

braziljs-2016

JavaScript
2
star
23

holyjs-2016

oh hey, it's a holyjs CLI talk โœŒ๐Ÿฝ
HTML
2
star
24

lrlna.github.io

HTML
1
star
25

emoji-art-bot

โœจ ๐ŸŽ‰ ๐Ÿข Twitter Bot ๐Ÿข ๐ŸŽ‰ โœจ
1
star
26

graphql-schema-rs

[WIP] Schema Introspection given a GraphQL API Endpoint
Rust
1
star
27

nordicjs-2016

Cellular Automata @ NordicJS
JavaScript
1
star
28

glc-ruby

tasks + slides for glc ruby day
Ruby
1
star
29

nina-2016

NodeInteractive Austin 2016 talk
JavaScript
1
star
30

node-interactive-eu-16

Node Interactive Slides โœจ
JavaScript
1
star
31

nodefest-2016

JavaScript
1
star
32

nom

a recipe blog
HTML
1
star
33

township-github

github provider for township ๐Ÿก ๐Ÿš€
JavaScript
1
star
34

advent-of-read

A collection of books for the month of December
1
star
35

npmCliTalk

talking about npm cli and things ^.^
1
star
36

bigboringsystem

BBS - Big Boring System
JavaScript
1
star