Git Product home page Git Product logo

logger-zerolog's Introduction

zerolog for Mojito

PRs Welcome

zerolog for Mojito provides a zerolog Logger implementation that was designed specifically for Mojito with full compatibility.

SonarCloud Report


Quickstart

To start using zerolog as the default logger, simply set it as default like this:

func init() {
    zerolog.AsDefault()
}

Or if you want it as a secondary logger you can register it as a named logger like this:

func init() {
    zerolog.As("myLogger")
}

If you want a more readable, fancy looking log you can enable it by simply adding one line during init:

func init() {
    zerolog.Pretty()
}

Documentation

Read our Documentation, check out the Project Website.

Icon made with Gopherize and flaticon.

logger-zerolog's People

Contributors

dependabot[bot] avatar 0skillallluck avatar nilathedragon avatar

logger-zerolog's Issues

[Enhancement]: Add possibility to set logger output

Description

I think it would be nice to use Output() functionality of zerolog to be able to log to file (too)

Additional Context

No response

Code Snippet

No response

Checklist:

  • I agree to follow Mojito's Code of Conduct.
  • I have checked for existing issues that describe my suggestion prior to opening this one.
  • I understand that improperly formatted feature requests reports may be closed without explanation.

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.