https://github.com/kwladyka/consistency-clj
Clojure / ClojureScript consistency helpers
https://github.com/kwladyka/consistency-clj
clojure clojurescript consistency
Last synced: 4 months ago
JSON representation
Clojure / ClojureScript consistency helpers
- Host: GitHub
- URL: https://github.com/kwladyka/consistency-clj
- Owner: kwladyka
- License: epl-2.0
- Created: 2021-07-29T19:47:32.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-10T23:45:22.000Z (over 2 years ago)
- Last Synced: 2024-12-18T11:24:32.007Z (6 months ago)
- Topics: clojure, clojurescript, consistency
- Language: Clojure
- Homepage:
- Size: 31.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README

# Consistency
Code which help me keep consistency in my projects. Feel free to use it.
## Rationale
- Consistency for all services which I develop.
- Don't reinvent the wheel in own services.
- Don't be force to use everything. Only what you want, how you want. It means good namespace splitting.## Add dependency
[](https://clojars.org/net.clojars.kwladyka/consistency)
## Specification
- [logs/ring_wrappers](src/consistency/logs/ring_wrappers.clj) - wrappers for [ring](https://github.com/ring-clojure/ring)
- [logs/google/json_payload.clj](src/consistency/logs/google/json_payload.clj) - JSON structured logs output in google format. Especially useful for services like [cloud run](https://cloud.google.com/run), because google read JSON format from `stdout` and `stderr`. In that way you don't need any extra libraries for logging.
- google doc [JSON payload](https://cloud.google.com/logging/docs/agent/logging/configuration#process-payload)
- It works in [cloud run](https://cloud.google.com/run) with google [Error Reporting](https://cloud.google.com/error-reporting/docs/) without any additional settings.---
Everything below this line is mainly for myself as a maintainer of this library.
### Tests
`clj -X:run-tests`
`clj -M:check-syntax-and-reflections`