Environments
Sentry automatically creates environments when it receives an event with the environment tag. Environments are case sensitive. The environment name can't contain newlines, spaces or forward slashes, can't be the string "None", or exceed 64 characters. You can't delete environments, but you can hide them.
NLog Layouts
For more information on how to dynamically set event data via NLog.config
, see NLog's layout renderer documentation.
Copied
<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
<extensions>
<add assembly="Sentry.NLog" />
</extensions>
<targets>
<target
xsi:type="Sentry"
name="sentry"
dsn="https://examplePublicKey@o0.ingest.sentry.io/0"
environment="Development">
</target>
</targets>
<rules>
<logger name="*" writeTo="sentry" />
</rules>
</nlog>
Environments help you better filter issues, releases, and user feedback in the Issue Details page of sentry.io, which you learn more about in our documentation that covers using environments.
- Package:
- nuget:Sentry.NLog
- Version:
- 4.9.0
- Repository:
- https://github.com/getsentry/sentry-dotnet