https://github.com/binaryage/clearcut
Unified logging overlay on top of console.log and clojure.tools.logging (WIP)
https://github.com/binaryage/clearcut
clojure clojurescript logging
Last synced: 2 months ago
JSON representation
Unified logging overlay on top of console.log and clojure.tools.logging (WIP)
- Host: GitHub
- URL: https://github.com/binaryage/clearcut
- Owner: binaryage
- License: other
- Created: 2016-11-07T20:18:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-15T17:08:19.000Z (about 8 years ago)
- Last Synced: 2025-03-26T10:48:13.649Z (3 months ago)
- Topics: clojure, clojurescript, logging
- Language: Clojure
- Homepage:
- Size: 112 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: license.txt
Awesome Lists containing this project
README
# clearcut
[](license.txt)
[](https://clojars.org/binaryage/clearcut)
[](https://travis-ci.org/binaryage/clearcut)
This is a library offering a thin unified logging layer on top of console.log (ClojureScript) and clojure.tools.logging (Clojure).Clearcut helps you write logging code which can be copy&pasted between Clojure and ClojureScript or used in cljc files directly.
Design goals:
1. use log levels matching `clojure.tools.logging`
1. `:log-level` elides unwanted logs at compile-time
1. ClojureScript (dev mode):
1. be `cljs-devtools` friendly (do not stringify parameters)
1. support styling
1. display namespaces
1. ClojureScript (release mode):
1. stringify parameters (pprint)
1. limit output size
1. display namespaces
1. Clojure
1. delegate to `clojure.tools.logging`
1. convert styling to ANSI colors or optionally strip it