summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-10-07 19:56:44 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-10-13 12:40:53 +0100
commit15e325ccb0b7714c49e4fefdac43a8118648da5b (patch)
treed4ba8bf2d535fb46ff87986d72940952fd82a706
parent2956cacd2375ea05162b8aacef2583e876d792fe (diff)
gnu: Add go-github-com-schollz-logger.
* gnu/packages/golang-xyz.scm (go-github-com-schollz-logger): New variable. Change-Id: If874493fe9bab2b24e48d29c750352e42f8f74ed
-rw-r--r--gnu/packages/golang-xyz.scm36
1 files changed, 36 insertions, 0 deletions
diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm
index afdc780def7..8f99b38017f 100644
--- a/gnu/packages/golang-xyz.scm
+++ b/gnu/packages/golang-xyz.scm
@@ -18715,6 +18715,42 @@ configuration file.")
organizing command line Go applications.")
(license license:expat))))
+(define-public go-github-com-schollz-logger
+ (package
+ (name "go-github-com-schollz-logger")
+ (version "1.2.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/schollz/logger")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1680348j54vwfx7sczygchrd9dabnycj3mpxg3fmpf9a356vd2af"))))
+ (build-system go-build-system)
+ (arguments
+ (list
+ #:import-path "github.com/schollz/logger"
+ ;; Go@1.24 forces vet, but tests are not ready yet.
+ #:test-flags #~(list "-vet=off")))
+ (home-page "https://github.com/schollz/logger")
+ (synopsis "Simplistic, opinionated logging for Golang")
+ (description
+ "This package provides a opinionated logging for Golang.
+Features:
+@itemize
+@item zero dependencies
+@item Global logger (with optional local logger)
+@item leveled
+@item useful defaults / i.e. zero-config
+@item simple API
+@item colors on Linux
+@item set leveling via environmental variables
+@code{LOGGER=trace|debug|info|warn|error}
+@end itemize")
+ (license license:expat)))
+
(define-public go-github-com-schollz-progressbar-v3
(package
(name "go-github-com-schollz-progressbar-v3")