'azure function logError slow

I have an Azure Function with a method that takes ILogger as an argument.

log.LogInformation(...)
log.LogWarning(...)

are fast, but

log.LogError(...)

is extermly slow.

What could be the reason?

2022-02-18T13:59:48.852 [Information] this is a test
2022-02-18T13:59:48.852 [Information] this is a test
x100
2022-02-18T13:59:48.856 [Information] Information loop: 4ms
2022-02-18T13:59:48.856 [Warning] this is a test
2022-02-18T13:59:48.856 [Warning] this is a test
x100
2022-02-18T13:59:48.859 [Information] Warning loop: 3ms
2022-02-18T13:59:48.902 [Error] this is a test
2022-02-18T13:59:48.996 [Error] this is a test
x100
2022-02-18T13:59:54.940 [Information] Error loop: 6080ms



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source