# Logger Module

Debug logging facility. Logs to the `logger` log source. Import

```
import logger from 'logger';
```

### Methods

### info/warn/error/debug/trace(...)

Takes variable arguments and accepts javascript objects. The resulting data is stored in the `dat` log field. the administration interface developer logs contains these log entries under the `Logger` source.

### Examples

Logger Example

```
import logger from 'logger'
logger.info('Hello World')
```

The logger responses are found in the `Logs` section of the admin portal. Filter by `Logger` type to see the result.![](https://files.readme.io/d1e27b0-Screen_Shot_2017-06-21_at_11.20.45_AM.png)<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.medable.com/cortex-api/scripting/modules-1/logger-module.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
