Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save samuraitruong/ee6d3366b067c024164a6f07d6e6d825 to your computer and use it in GitHub Desktop.
Save samuraitruong/ee6d3366b067c024164a6f07d6e6d825 to your computer and use it in GitHub Desktop.
app.json
{
"Logging": {
"LogLevel": {
"Default": "Information"
},
"Debug": {
"LogLevel": {
"Default": "Information"
}
},
"Console": {
"LogLevel": {
"Default": "Information"
}
},
"File": {
"LogLevel": {
"Default": "Information"
},
"Path": "logs",
"FileName": "system_net_trace.log",
"MaxFileSize": 1048576,
"MaxNumberOfFiles": 5
}
},
"System": {
"Diagnostics": {
"sources": {
"System.Net": {
"traceMode": "includehex",
"maxDataSize": "1024",
"listeners": {
"add": [
{
"name": "System.Net"
}
]
}
},
"System.Net.Sockets": {
"traceMode": "includehex",
"maxDataSize": "1024",
"listeners": {
"add": [
{
"name": "System.Net"
}
]
}
}
},
"sharedListeners": {
"add": [
{
"name": "System.Net",
"type": "System.Diagnostics.TextWriterTraceListener",
"initializeData": "logs/system_net_trace.log"
}
]
},
"switches": {
"System.Net": "Verbose",
"System.Net.Sockets": "Verbose"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment