# Unable to update log format or level in lambdas defined with serverless framework

**URL:** https://forum.serverless.com/t/unable-to-update-log-format-or-level-in-lambdas-defined-with-serverless-framework/20920
**Category:** Serverless Framework
**Tags:** aws, lambda, api-gateway
**Created:** [January 21, 2025, 10:55am UTC](https://forum.serverless.com/t/unable-to-update-log-format-or-level-in-lambdas-defined-with-serverless-framework/20920 "2025-01-21T10:55:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![YneroY](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/yneroy/32/8240_2.png) [@YneroY](https://forum.serverless.com/u/YneroY)
#### Post date: [January 21, 2025, 10:55am UTC](https://forum.serverless.com/t/unable-to-update-log-format-or-level-in-lambdas-defined-with-serverless-framework/20920/1 "2025-01-21T10:55:34Z")

</div>

I have a serverless.yml which contains definition and deployment for multiple lambdas and also the corresponding api gateway. However, I cannot get the log and log level to be applied to the lambda.

The below is added so that the log config. can be applied to all the lambdas, but it didn’t work.

```auto
provider:
  name: aws
  lambdaHashingVersion: 20201221
  apiGateway:
    minimumCompressionSize: 1024
  runtime: nodejs16.x
  memorySize: 512 # in MB, default is 1024
  timeout: 10 # in seconds, default is 6
  logRetentionInDays: ${file(./serverless_properties.yml):${self:provider.stage}.LOG_RETENTION_DAYS, "90"}
  logs:
    lambda:
      logFormat: JSON
      applicationLogLevel: ERROR
      systemLogLevel: INFO

    httpApi:
      format: '{"request_id": "$context.requestId", "ip": "$context.identity.sourceIp", "requestTime":"$context.requestTime", "routeKey":"$context.routeKey", "status":"$context.status", "auth_error": "$context.authorizer.error", "error": "$context.error.message", "caller": "$context.identity.caller", "user": "$context.identity.user", "integration_error": "$context.integration.error" }'

```

I also tried the following; To configure the log level and stuff for a particular function, and it didn’t work as well.

```auto
functions:
  get_releases_test_auth:
    handler: main.GetReleases
    events:
      - httpApi:
          method: get
          path: "/test_auth/releases"
          authorizer:
            name: azure_ad_auth
    logs:
      # The Log Format to be used for all lambda functions (default: Text)
      logFormat: JSON
      # The Application Log Level to be used, This can only be set if `logFormat` is set to `JSON`
      applicationLogLevel: ERROR
      # The System Log Level to be used, This can only be set if `logFormat` is set to `JSON`
      systemLogLevel: INFO

```

My framework version is defined as frameworkVersion: ^2.35.0 which I don’t think would be an issue, any help is really appreciated.

---

<div class="post-metadata">

### Author: ![auratuspiscis](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/auratuspiscis/32/8341_2.png) [@auratuspiscis](https://forum.serverless.com/u/auratuspiscis)
#### Post date: [April 17, 2025, 11:41am UTC](https://forum.serverless.com/t/unable-to-update-log-format-or-level-in-lambdas-defined-with-serverless-framework/20920/2 "2025-04-17T11:41:30Z")

</div>

Hello, I’ve had the same issue using version 3.7 This feature appears to be broken in every version before major version 4.

What helped in my case was a plugin found here: [serverless-logging-config/README.md at main · theburningmonk/serverless-logging-config · GitHub](https://github.com/theburningmonk/serverless-logging-config/blob/main/README.md)

Hope it could help in your case as well

---

<div class="post-metadata">

### Author: ![beenmeckel](https://avatars.discourse-cdn.com/v4/letter/b/8dc957/32.png) [@beenmeckel](https://forum.serverless.com/u/beenmeckel)
#### Post date: [March 31, 2026, 6:20pm UTC](https://forum.serverless.com/t/unable-to-update-log-format-or-level-in-lambdas-defined-with-serverless-framework/20920/3 "2026-03-31T18:20:13Z")

</div>

If you are unable to update the log format or level for AWS Lambda functions defined with the Serverless Framework,

[snaptube](https://snaptube.cam/)[vidmate](https://vidmate.bid/)
