proxy.golang.org : github.com/romantomjak/devslog
Package devslog provides a log/slog handler that formats records where message is followed by each of it's attributes on seperate lines. It implements the slog.Handler interface to format the record's message. The default slog.TextHandler output adds year/month/date which I rarely find useful when working on code locally. This is what slog.TextHandler default output looks like: This package turns the above message into this: The devslog handler can be set as the default logger with: The top-level slog functions slog.Info, slog.Debug, etc will all use this handler to format the records. SetDefault also updates the default logger used by the log package, so that existing applications that use log.Printf and related functions will send log records to the logger's handler without needing to be rewritten.
      Registry
      -
      Source
      - Documentation
    - JSON
    - codemeta.json
    
    purl: pkg:golang/github.com/romantomjak/devslog
      
 Keywords: 
        go
        , slog
        , slog-handler
      
License: MIT
        
Latest release: 8 months ago
        
First release: 8 months ago
      
Namespace: github.com/romantomjak
    
      
Stars: 0 on GitHub
      
Forks: 0 on GitHub
      
See more repository details: repos.ecosyste.ms
      
Last synced: 9 days ago