• Stars
    star
    177
  • Rank 215,985 (Top 5 %)
  • Language
    Rust
  • License
    Apache License 2.0
  • Created over 5 years ago
  • Updated over 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
516
star
2

pino-colada

cute ndjson formatter for pino 🌲🍹
JavaScript
245
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
24
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
Shell
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

advent-of-read

A collection of books for the month of December
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

emoji-art-bot

✨ πŸŽ‰ 🐒 Twitter Bot 🐒 πŸŽ‰ ✨
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

glc-ruby

tasks + slides for glc ruby day
Ruby
1
star
33

nom

a recipe blog
HTML
1
star
34

township-github

github provider for township 🏑 πŸš€
JavaScript
1
star
35

npmCliTalk

talking about npm cli and things ^.^
1
star