Reputation: 168
I know application insight is a good way to log azure functions. However, our data volume is quite large. Application insight is really expensive for us as $3.17/ GB. Performance Counter almost cost half data volume.
Are there any good choices for azure function logging?
Upvotes: 0
Views: 2446
Reputation: 33379
If your concern is the volume of data being logged, you can configure just how much logging is done via host.json. Documentation is available here.
For example, if you only want details about errors being logged, then you would add logger
configuration to your function's host.json
like so:
{
"logger": {
"categoryFilter": {
"defaultLevel": "Error",
"categoryLevels": {
"Host": "Error",
"Function": "Error"
}
}
}
}
Upvotes: 1