From 226cccd4695b18d1f9504c6bd26e97b8e77cc215 Mon Sep 17 00:00:00 2001 From: Matt Vella <1242958+mcvella@users.noreply.github.com> Date: Tue, 9 Jan 2024 13:45:01 -0500 Subject: [PATCH] DOCS-1636 --- docs/registry/create/_index.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/registry/create/_index.md b/docs/registry/create/_index.md index 7d1dcb99a2..72e1c84e5c 100644 --- a/docs/registry/create/_index.md +++ b/docs/registry/create/_index.md @@ -1157,6 +1157,14 @@ from viam.logging import getLogger # Before your first class or function, define the LOGGER variable: LOGGER = getLogger(__name__) + +# in some method, log information +LOGGER.debug("debug info") +LOGGER.info("info info") +LOGGER.warn("warn info") +LOGGER.error("error info") +LOGGER.exception("error info", exc_info=True) +LOGGER.critical("critical info") ``` {{% /tab %}}