Azure / Azure/azure-functions-host

[Custom handlers] Add ability to specify level for each log message

Open
#6,608 10 comments 3 reactions 1 assignee Claimed by @pragnagopa View on GitHub
httpWorker
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

Currently custom handler logs are an array of strings. Is it possible to allow setting the type (Error, Warning, etc) of the log message?

We could accept objects instead of strings. But this would be a breaking change.

Another possibility is to support prefixing the string with the level. Something like:

```json
"Logs": [
"[WARNING] this is a warning"
]
```

@pragnagopa @yojagad

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.