Coder Social home page Coder Social logo

awesome-slog's Introduction

Awesome slog

Collection of log/slog related projects.

Do you have something to add? Please read the contributing guide and open a pull request.

Contents

General

General purpose handlers and integrations.

  • slog-exp: Individual log files foe levels, Wrapping ReplaceAttr, displaying goroutine id, etc.
  • slog-multi: Chaining handlers (pipe, router, fanout, etc).
  • slog-sampling: Drop repetitive log entries.
  • slog-shim: Backward compatible slog support for Go <1.21.
  • sloggen: Generate various helpers.
  • sloglint: Ensure consistent code style.

⬆ back to top

Formatting

Record and output formatters.

  • console-slog: Handler that prints colorized logs, similar to zerolog's console writer output without sacrificing performances.
  • devslog: Format logs for development.
  • slog-formatter: Common formatters for slog + helpers for building your own.
  • slogor: A colorful slog handler.
  • slogpfx: Easily prefix your log messages with attributes from the log record.
  • tint: Handler that writes tinted logs.
  • zlog: Handler that writes beautiful, human readable logs.

⬆ back to top

Enrichment

Handlers enriching log records.

  • masq: Redact sensitive data in logs.
  • otelslog: Handler attaching OpenTelemetry trace and resource details to logs.
  • slog-context: Attach arbitrary key-value pairs to log records through context.

⬆ back to top

Log forwarding

Handlers forwarding logs.

⬆ back to top

Adapters

Adapters for other logging libraries.

⬆ back to top

Integrations

log/slog integrations into third-party components.

⬆ back to top

Resources

Other resources about log/slog.

⬆ back to top

Blog posts

Blog posts about log/slog.

⬆ back to top

Creating slog

Resources documenting the creation of log/slog.

⬆ back to top

awesome-slog's People

Contributors

dependabot[bot] avatar greyxor avatar ingve avatar sagikazarmark avatar skynewz avatar smallnest avatar tmzane avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.