Coder Social home page Coder Social logo

Comments (6)

tomaszjezierski-olx avatar tomaszjezierski-olx commented on June 19, 2024 4

Hey, this feature looks great and would allow us to reduce the cost. I have one question: shouldn't be there a possibility to set the LoggingConfig also on the provider level? Each Lambda probably is going to share the same configuration for logging, so it will reduce the boilerplate.

from serverless.

ryy avatar ryy commented on June 19, 2024

Looking at the documentation, it seems that defining LoggingConfig is a good idea.

What about the following settings?

functions:
  hello:
    ...
    loggingConfig:
      applicationLogLevel: <value>
      logFormat: <value>
      logGroup: <value>
      systemLogLevel: <value>

Can I please be assigned to this one?

from serverless.

JaredAAT avatar JaredAAT commented on June 19, 2024

Whilst we're waiting for feedback, anyone who needs this functionality now can look towards: https://www.npmjs.com/package/serverless-logging-config

from serverless.

mbertrand-kintsugi avatar mbertrand-kintsugi commented on June 19, 2024

Maybe the issue I opened over at #12284 should be folded into this one? It's asking for pretty much the same thing. When I wrote it, I honestly didn't even know it was a new feature. I just assumed everyone supported json through and through these days.

from serverless.

ac360 avatar ac360 commented on June 19, 2024

Thank you for your input. We've implemented the requested feature in V.4, available for both Provider and Function settings. For the correct YAML usage, check out the serverless.yml documentation, and for the function examples, simply scroll down. We're aware of an inconsistency with a titlecase YAML property. Rest assured, this will be corrected by Monday, as noted in this issue.

from serverless.

ac360 avatar ac360 commented on June 19, 2024

Looks like that was just a documentation typo and the YAML implementation correctly uses camelCase. This feature is ready to go.

from serverless.

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.