---
title: logger
slug: data-platform/connect-platform/app-sdk-api-reference-variables-logger
docTags: 
createdAt: 2026-08-05T20:06:35.534Z
---

[OCP App SDK](docId\:gxEU_0AA37IEZJK-uoVcT)

***

[OCP App SDK](docId\:gxEU_0AA37IEZJK-uoVcT) / logger

# Variable: logger

:::BlockQuote
`const` **logger**: [`` `ILogger` ``](docId\:Ycw1fQzrGh3L2aD7YM7tx)
:::

Defined in: [src/logging/Logger.ts:303](https://github.com/ZaiusInc/app-sdk/blob/8c7209817facb226c91abb960e6d54a7692b9aa2/src/logging/Logger.ts#L303)

Logger instance to be used by OCP apps.
Minimum log level can be configured by using `ocp app set-log-level` command, e.g.:
`ocp app set-log-level my_app@1.0.0 error`
`ocp app set-log-level my_app@1.0.0 info`
To get the current log level of an app, use the command `ocp app get-log-level` command, e.g.:
`ocp app get-log-level my_app@1.0.0 --trackerId=1234`
Accepted levels include debug, info, warn, error
