Skip to content

Releases: gateway-fm/scriptorium

Crypto/rand

12 Jul 15:23
40ed2d8
Compare
Choose a tag to compare
feat: user crypto rand (#30)

Co-authored-by: Dmitry Selivanov <dmitry@gateway.fm>

Why not

03 Jul 11:27
c651e10
Compare
Choose a tag to compare
fix: panic on uncomparable log attrs (#25)

Co-authored-by: Dmitry Selivanov <dmitry@gateway.fm>

Fix panic on log attrs

03 Jul 11:26
Compare
Choose a tag to compare
v0.0.21

feat: log fixed for in memory queue

zap logger for fasthttp

12 Feb 22:47
Compare
Choose a tag to compare

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

10 Feb 17:53
Compare
Choose a tag to compare

Helper package added with fasthttp implementation

*fasthttp

Health check (with mutex)

19 May 15:22
f2eced5
Compare
Choose a tag to compare

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

10 Mar 14:16
62ca4b0
Compare
Choose a tag to compare

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

02 Feb 11:12
92e8e38
Compare
Choose a tag to compare

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

26 Jan 14:39
98a8a7e
Compare
Choose a tag to compare

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

17 Jan 11:52
030ef23
Compare
Choose a tag to compare
  • userPublicKey attribute is logged and set to be equal "not set" in such cases