Skip to content

Instantly share code, notes, and snippets.

@keyan1603
Created September 20, 2023 18:09
Show Gist options
  • Save keyan1603/87c83ae2f19f214c474d0fc4175e2260 to your computer and use it in GitHub Desktop.
Save keyan1603/87c83ae2f19f214c474d0fc4175e2260 to your computer and use it in GitHub Desktop.
Extending the default OOTB logging - Windows nodes
{
"LogConfig": {
"sources": [
{
"type": "EventLog",
"startAtOldestRecord": true,
"eventFormatMultiLine": false,
"channels": [
{
"name": "system",
"level": "Information"
},
{
"name": "application",
"level": "Error"
}
]
},
{
"type": "File",
"directory": "c:\\inetpub\\logs",
"filter": "*.log",
"includeSubdirectories": true
},
{
"type": "File",
"directory": "c:\\inetpub\\wwwroot\\App_data\\logs",
"filter": "*.txt",
"includeSubdirectories": false
},
{
"type": "File",
"directory": "c:\\your\\own\\logfolder",
"filter": "*.log",
"includeSubdirectories": true
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment