Logging in Pre-Compiled Azure Functions
Pre-Requisites
- func.exe
- MSBuild 15 (this is installed if you have Visual Studio 2017 or the dotnet core SDK)
Running
git clone https://github.com/jaredcnance/AzureFunctionsLogging.git
cd ./AzureFunctionsLogging/AzureFunctionsLogging
dotnet build
or msbuild.exe
func host start
- Send request:
Serilog
curl -X POST \
http://localhost:7071/api/serilog \
-H 'content-type: application/json' \
-d '{}'
log4net
curl -X POST \
http://localhost:7071/api/log4net \
-H 'content-type: application/json' \
-d '{}'