Unable to Add JSON logging for lamba

Hello Team,
I have this config to add json logging ,but it does not deploy lambda with json logging

provider:
name: aws
deploymentMethod: direct
runtime: <+serviceVariables.LambdaRuntime>
profile: default
versionFunctions: <+serviceVariables.LambdaVersionFunction>
deploymentPrefix: <+serviceVariables.AppCI>
logRetentionInDays: <+stage.spec.execution.steps.export.output.outputVariables.LambdaLogRetentionInDays>
vpc:
securityGroupIds:

  • ${self:custom.securityGroups, “”}
    subnetIds:
    ${split(${self:custom.subnets}, ‘,’)}
    logs:
    lambda:
    logFormat: JSON
    applicationLogLevel: ERROR
    systemLogLevel: INFO

I’m trying to output my Python lambda logs in JSON format so they’re more machine-readable and query-able. 9Apps Tutuapp