Releases: gateway-fm/scriptorium
Releases · gateway-fm/scriptorium
Crypto/rand
feat: user crypto rand (#30) Co-authored-by: Dmitry Selivanov <[email protected]>
Why not
fix: panic on uncomparable log attrs (#25) Co-authored-by: Dmitry Selivanov <[email protected]>
Fix panic on log attrs
v0.0.21 feat: log fixed for in memory queue
zap logger for fasthttp
FastHttp logging using zap logger!
To add fasthttp logger into your project you would be needed to follow these simple stepps:
- add logger initialization inside your main.go func
//main.go:
package main
import("github.com/gateway-fm/scriptorium/logger")
func main(){
// note: default logger mode is "prod"
// If you're looking for more readable one:
// "export ENV=local"
logger.SetLoggerMode(os.Getenv("ENV"))
}
- use it while ctx *fasthttp.RequestCtx is available
//your_fasthttp_func.go:
func Foo(ctx *fasthttp.RequestCtx) {
logger.LogFast(ctx).Info("hello world")
logger.LogFast(ctx).With()
// etc...
fasthttp* helper
Helper package added with fasthttp implementation
Health check (with mutex)
What's Changed
- feat: add healthcheck mutex package by @maxrev17 in #13
Full Changelog: v0.0.11...v0.0.12
Logging: add fields to convenience funcs
What's Changed
- Node ping by @misnaged in #11
- feat: improve logging by adding fields to variadic funcs by @maxrev17 in #12
Full Changelog: v0.0.7...v0.0.11
Method to add a log attribute and crop it's content if needed
Added method AnyCropped
which returns a field similar to zap.Any
but with cropped content in case it is longer than 200 chars.
Full Changelog: v0.0.5...v0.0.7
Sensitive log redaction
Log redaction, to enable removing sensitive info from logs. Currently supports IP address redaction.
What's Changed
- ps-414 feat: add logger redact funcs (ip addr only currently) by @maxrev17 in #7
Full Changelog: v0.0.4...v0.0.5
Add logging of a public key if it is empty
- userPublicKey attribute is logged and set to be equal "not set" in such cases