Skip to content
Permalink
Browse files

Minor fixes

  • Loading branch information...
sergeuz committed Jun 13, 2016
1 parent 53f993b commit 0e0a69103d79c865babcc6eeb0e3b53b6970afaa
Showing with 3 additions and 3 deletions.
  1. +3 −3 firmware.md
@@ -8525,7 +8525,7 @@ void loop() {
}
```

In the provided example, both trace and info messages has been filtered out due to the log handler settings, which prevent log messages below the `LOG_LEVEL_WARN` level from being logged:
In the provided example, the trace and info messages will be filtered out according to the log handler settings, which prevent log messages below the `LOG_LEVEL_WARN` level from being logged:

`0000000050 [app] WARN: This is warning message`
`0000000100 [app] ERROR: This is error message`
@@ -8576,7 +8576,7 @@ The example application generates the following logging output:
`0000000044 [app] INFO: System started`
`0000000044 [app.network] TRACE: Connecting to server`

Note that the trace message containing device ID has been filtered out due to the log handler settings, which prevent log messages with the `app` category from being logged if their logging level is below the `LOG_LEVEL_INFO` level.
Note that the trace message containing device ID has been filtered out according to the log handler settings, which prevent log messages with the `app` category from being logged if their logging level is below the `LOG_LEVEL_INFO` level.

Category filters are specified using _initializer list_ syntax with each element of the list containing a filter string and a minimum logging level required for messages with matching category to be logged. Note that filter string matches not only exact category name but any of its subcategory names as well, for example:

@@ -8616,7 +8616,7 @@ void loop() {
}
```
The example application specifies `code` and `details` attributes and generates the following logging output:
The example application specifies `code` and `details` attributes for the error message, generating the following logging output:
`0000000084 [app] INFO: Connecting to server`
`0000000087 [app] ERROR: Connection error [code = 111, details = Connection refused]`

0 comments on commit 0e0a691

Please sign in to comment.
You can’t perform that action at this time.