Log hook for bun ORM

Overview

Bun Log Hook

Log Hook for bun.

Benchmark results

$ go test -run=. -bench=. -benchtime=5s -count 5 -benchmem
goos: windows
goarch: amd64
pkg: github.com/ron96G/bun-log-hook
cpu: AMD Ryzen 9 5900X 12-Core Processor
Benchmark Name Iterations ns/op B/op allocs/op
BenchmarkLoghook-24 14692111 387.8 ns/op 269 B/op 1 allocs/op
BenchmarkLoghook-24 18036872 366.9 ns/op 240 B/op 1 allocs/op
BenchmarkLoghook-24 18299829 335.7 ns/op 47 B/op 1 allocs/op
BenchmarkLoghook-24 18169380 335.2 ns/op 47 B/op 1 allocs/op
BenchmarkLoghook-24 18313262 335.2 ns/op 47 B/op 1 allocs/op
BenchmarkLoghookFailed-24 17416347 352.5 ns/op 47 B/op 1 allocs/op
BenchmarkLoghookFailed-24 17238441 347.8 ns/op 47 B/op 1 allocs/op
BenchmarkLoghookFailed-24 17280080 348.6 ns/op 47 B/op 1 allocs/op
BenchmarkLoghookFailed-24 17256240 347.7 ns/op 47 B/op 1 allocs/op
BenchmarkLoghookFailed-24 17189740 356.4 ns/op 47 B/op 2 allocs/op
Owner
Ron
DevOps Engineer
Ron
An golang log lib, supports tracking and level, wrap by standard log lib

Logex An golang log lib, supports tracing and level, wrap by standard log lib How To Get shell go get gopkg.in/logex.v1 source code import "gopkg.in/

chzyer 38 Aug 18, 2021
Nginx-Log-Analyzer is a lightweight (simplistic) log analyzer for Nginx.

Nginx-Log-Analyzer is a lightweight (simplistic) log analyzer, used to analyze Nginx access logs for myself.

Mao Mao 13 Nov 23, 2021
a golang log lib supports level and multi handlers

go-log a golang log lib supports level and multi handlers Use import "github.com/siddontang/go-log/log" //log with different level log.Info("hello wo

siddontang 28 Nov 11, 2020
Structured log interface

Structured log interface Package log provides the separation of the logging interface from its implementation and decouples the logger backend from yo

teris.io 24 Jan 3, 2021
lumberjack is a log rolling package for Go

lumberjack Lumberjack is a Go package for writing logs to rolling files. Package lumberjack provides a rolling logger. Note that this is v2.0 of lumbe

Nate Finch 2.9k Dec 7, 2021
CoLog is a prefix-based leveled execution log for Go

What's CoLog? CoLog is a prefix-based leveled execution log for Go. It's heavily inspired by Logrus and aims to offer similar features by parsing the

null 158 Jul 19, 2021
OpenTelemetry log collection library

opentelemetry-log-collection Status This project was originally developed by observIQ under the name Stanza. It has been contributed to the OpenTeleme

OpenTelemetry - CNCF 70 Nov 30, 2021
A simple web service for storing text log files

logpaste A minimalist web service for uploading and sharing log files. Run locally go run main.go Run in local Docker container The Docker container a

Michael Lynch 144 Dec 6, 2021
exo: a process manager & log viewer for dev

exo: a process manager & log viewer for dev exo- prefix – external; from outside. Features Procfile compatible process manager.

Deref 260 Nov 30, 2021
Write log entries, get X-Ray traces.

logtoxray Write to logs, get X-Ray traces. No distributed tracing instrumenation library required. ?? ?? ?? THIS PROJECT IS A WORK-IN-PROGRESS PROTOTY

JBD 27 Sep 7, 2021
Binalyze logger is an easily customizable wrapper for logrus with log rotation

logger logger is an easily customizable wrapper for logrus with log rotation Usage There is only one function to initialize logger. logger.Init() When

Binalyze 26 Nov 18, 2021
Log-structured virtual disk in Ceph

lsd_ceph Log-structured virtual disk in Ceph 1. Vision and Goals of the Project Implement the basic librbd API to work with the research block device

null 2 Nov 17, 2021
Multi-level logger based on go std log

mlog the mlog is multi-level logger based on go std log. It is: Simple Easy to use NOTHING ELSE package main import ( log "github.com/ccpaging/lo

null 0 Dec 2, 2021
Simple log parser written in Golang

Simple log parser written in Golang

Matteo Baiguini 0 Oct 31, 2021
Nginx JSON Log Analyze

Nginx-JSON-Log-Analyze Nginx Configuration log_format json_log escape=json '{"time_iso8601":"$time_iso8601",' '"remote

Mao Mao 13 Nov 23, 2021
A Log merging tool for linux.

logmerge A Log merging tool for linux. How to build make build How to run --files or -f will allow you to specify multiple log files (comma-seperated)

Paul Theunis 0 Nov 4, 2021
Secure logger in Go to avoid output sensitive data in log

zlog A main distinct feature of zlog is secure logging that avoid to output secret/sensitive values to log. The feature reduce risk to store secret va

Masayoshi Mizutani 16 Dec 5, 2021
Used to test the log collection function.

Used to test the log collection function.

stephen.li 0 Nov 30, 2021
A lightweight (simplistic) JSON format log analyzer for Nginx.

Nginx-JSON-Log-Analyzer README English | 中文 What is it Nginx-JSON-Log-Analyzer is a lightweight (simplistic) JSON format log analyzer, used to analyze

Mao Mao 13 Nov 23, 2021