Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
JessamyT authored Dec 7, 2024
1 parent bd9595c commit 1e78db0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/how-tos/create-module.md
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,10 @@ self.logger.critical("critical info")
Resource-level logs are recommended instead of global logs for modular resources, because they make it easier to determine which component or service an error is coming from.
Resource-level logs appear in the **ERROR LOGS** section of each resource's configuration card in the app.

{{% alert title="Note" color="note" %}}
In order to see resource-level debug logs when using your modular resource, you'll either need to run `viam-server` with the `-debug` option or [configure your machine or individual resource to display debug logs](/architecture/viam-server/#logging).
{{% /alert %}}

{{< expand "Click to see global logging" >}}

If you need to publish to the global machine-level logs instead of using the recommended resource-level logging, you can follow this example:
Expand Down

0 comments on commit 1e78db0

Please sign in to comment.