+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "getLogLevelFromKey"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
+++

## getLogLevelFromKey() function

### getLogLevelFromKey() function

<b>Signature</b>

```typescript
export declare function getLogLevelFromKey(key: string | number): LogLevel;
```
<b>Import</b>

```typescript
import { getLogLevelFromKey } from '@grafana/data';
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  key | <code>string &#124; number</code> |  |

<b>Returns:</b>

`LogLevel`

