Skip to content

Commit 1d4c06e

Browse files
committed
Update docs
1 parent 4ee3c67 commit 1d4c06e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs-src/commands.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ InfoText("You have this many things: ")
256256

257257
## Logging
258258

259-
Any exceptions thrown by a command will be logged with NLog provided NLog is configured.
259+
Any exceptions thrown by a command will be logged provided NLog is configured to record errors.
260260
The [NLog configuration](https://github.com/NLog/NLog/wiki/Tutorial#configuration) file needs to be setup with something like this:
261261

262262
```xml
@@ -265,13 +265,11 @@ The [NLog configuration](https://github.com/NLog/NLog/wiki/Tutorial#configuratio
265265
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
266266

267267
<targets>
268-
<target name="logfile" xsi:type="File" fileName="file.txt" />
269-
<target name="console" xsi:type="Console" />
268+
<target name="logfile" xsi:type="File" fileName="inengine.log" />
270269
</targets>
271270

272271
<rules>
273-
<logger name="*" minlevel="Trace" writeTo="logfile" />
274-
<logger name="*" minlevel="Info" writeTo="console" />
272+
<logger name="*" minlevel="Error" writeTo="logfile" />
275273
</rules>
276274
</nlog>
277275
```

0 commit comments

Comments
 (0)