GithubHelp home page GithubHelp logo

Go 1.21 slog about protoactor-go HOT 3 CLOSED

rogeralsing avatar rogeralsing commented on June 4, 2024
Go 1.21 slog

from protoactor-go.

Comments (3)

rogeralsing avatar rogeralsing commented on June 4, 2024 1

Work in progress effort:

#937

In this PR. I made it so that users can set a LoggerFactory on the actor system Config.
This allows you to tweak the logger in any way you want.
The logger instance is then stored on the actor system itself. and re-used from there for all other modules.

from protoactor-go.

rogeralsing avatar rogeralsing commented on June 4, 2024

Related: https://www.reddit.com/r/golang/comments/15ud703/how_to_use_slog_in_a_library/

from protoactor-go.

nightwolfz avatar nightwolfz commented on June 4, 2024

This would create a convention of passing context to all actors methods in order to use the logger.
Not necessarily a bad thing.... just a heads up :)

Personally I like to keep it simple (switched custom logger to zap)

image

from protoactor-go.

Related Issues (20)

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.