---
schema_version: "1"
id: f366109757c966f7510522c692a14d6424d1ebfd489f30fa4b58b9007ffbff45
title: Logger | @tableau/taco-toolkit - v2.1.0
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/api/webdataconnector/reference/classes/app.Logger.md
canonical_url: https://help.tableau.com/v0.0/api/webdataconnector/en-us/reference/classes/app.Logger.html
source_site: help.tableau.com
content_type: documentation
content_hash: fb7044514b70f57c15a8a9df9d5abc8ed9bf4ce21dd4727a74d7a7101edf11d9
description: Documentation for @tableau/taco-toolkit
---
- [@tableau/taco-toolkit](https://help.tableau.com/v0.0/api/webdataconnector/en-us/reference/index.html)
- [app](https://help.tableau.com/v0.0/api/webdataconnector/en-us/reference/modules/app.html)
- [Logger](https://help.tableau.com/v0.0/api/webdataconnector/en-us/reference/classes/app.Logger.html)

# Class Logger

A logger class for logging connector app messages.

- Connector code can utilize the static methods directly without requiring explicit initialization.
- All logged messages will be displayed in the browser console and written to the connector's log file.

#### Hierarchy

- Logger

##### Index

### Methods

[debug](https://help.tableau.com/v0.0/api/webdataconnector/en-us/reference/classes/app.Logger.html#debug) [error](https://help.tableau.com/v0.0/api/webdataconnector/en-us/reference/classes/app.Logger.html#error) [info](https://help.tableau.com/v0.0/api/webdataconnector/en-us/reference/classes/app.Logger.html#info) [warn](https://help.tableau.com/v0.0/api/webdataconnector/en-us/reference/classes/app.Logger.html#warn)

## Methods

### `Static` debug[](#debug)

- debug(message): void[](#debug.debug-1)
- Logs a debug message.
    
    #### Parameters
    
    - ##### message: unknown
    
    #### Returns void
    
    #### Example
    
    ```ts
    Logger.debug('This is a debug message.');
    ```

### `Static` error[](#error)

- error(message): void[](#error.error-1)
- Logs an error message.
    
    #### Parameters
    
    - ##### message: unknown
    
    #### Returns void
    
    #### Example
    
    ```ts
    Logger.error('This is an error message.');
    ```

### `Static` info[](#info)

- info(message): void[](#info.info-1)
- Logs an information message.
    
    #### Parameters
    
    - ##### message: unknown
    
    #### Returns void
    
    #### Example
    
    ```ts
    Logger.info('This is an information message.');
    ```

### `Static` warn[](#warn)

- warn(message): void[](#warn.warn-1)
- Logs a warning message.
    
    #### Parameters
    
    - ##### message: unknown
    
    #### Returns void
    
    #### Example
    
    ```ts
    Logger.warn('This is a warning message.');
    ```

### Settings

#### Member Visibility

- Inherited

#### Theme

OSLightDark

### On This Page

- [debug](#debug)
- [error](#error)
- [info](#info)
- [warn](#warn)

Generated using [TypeDoc](https://typedoc.org/)