Skip to content

Cloud watch with log4net API  #27

@princykv

Description

@princykv

Hi,

I am trying to integrate log4net API to push all application logs directly to Cloud watch. This is working fine. But message in json format is truncated. I am trying to log API request and response content. My API is using following JSON format for request/response.

{
"Name": "SyncAPI",
"Message": {
"LastSyncNo": 100
},
"Status": {
"Success": false,
"Code": 422
}
}

Following layout pattern is used in log4net configuration. Could you please help me to log data in above mentioned JSON format using log4net?

<layout type="AWSAppender.Core.Layout.PatternLayout, AWSAppender.Core"> <conversionPattern value="%date [%thread] %-5level %message" /> </layout>
Regards,
Princy

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions