# Interface: Logger

Represents a logger function.

The Logger interface defines the structure of a logger function within the Creative Editor SDK. It includes a method for logging messages with an optional log level.

```
Logger(message, level?): void;
```

Represents a logger function.

The Logger interface defines the structure of a logger function within the Creative Editor SDK. It includes a method for logging messages with an optional log level.

## Parameters[#](#parameters)

| Parameter | Type |
| --- | --- |
| `message` | `string` |
| `level?` | [`LogLevel`](https://img.ly/docs/cesdk/sveltekit/api/cesdk-js/type-aliases/loglevel/) |

## Returns[#](#returns)

`void`

---



[Source](https:/img.ly/docs/cesdk/sveltekit/api/cesdk-js/interfaces/libraryoptions)