Skip to content

Commit 8af0c9d

Browse files
authored
Merge pull request #48 from markterrill/patch-7
Update for file_level voodoo
2 parents de61bbf + b9abcd5 commit 8af0c9d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mongoose-os/userguide/debug.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Saving and rebooting...</code></pre>
3939
```javascript
4040
{
4141
"factory_reset_gpio": -1, // Used to reset the device. Hold this pin down and reboot to reset
42-
"filter": "mg_,*mqtt*", // Log filter. Prefix match glob for source file or function name
42+
"file_level": "", // Filename and function name prefix match, ie `debug.file_level=mgos_vfs=2,mgos_event.c=2,mg_=2,=3`
4343
"level": 2, // Log verbosity level
4444
"mbedtls_level": 0, // Log verbosity level for TLS library
4545
"mg_mgr_hexdump_file": "", // Set to "-" to hexdump network packets
@@ -58,6 +58,9 @@ Notes:
5858
- If you connect to your device using via Websocket, as `ws://IP_ADDR/rpc`,
5959
then `mos` tool automatically sets the `debug.udp_log_addr` to the correct
6060
value and you don't need to set it up manually.
61+
- file_level is a comma separated list of string prefixes, which could be a full or partial start of word match.
62+
The number argument sets the maximum log level that will be accepted by files/functions matching it.
63+
You can put a 'match all' with a null string and a log level, ie "=3" will match everything and set it to 3 (INFO)
6164

6265
## Analysing core dumps
6366

0 commit comments

Comments
 (0)