# CallLogger (Logging Level APIs)

## isDebugOn

Checks if debug logging is enabled

```
CallLogger.isDebugOn()
```

#### Parameters

```
None
```

#### Returns

```
boolean
```

## setDebugLevel

Sets the debug logging level

```
CallLogger.setDebugLevel(boolean debugOn)
```

#### Parameters

```
debugOn
```

#### Returns

```
// Some code
```

## isInfoOn

Checks if info logging is enabled

```
CallLogger.isInfoOn()
```

#### Parameters

```
None
```

#### Returns

```
boolean
```

## setInfoLevel

Sets the info logging level

```
CallLogger.setInfoLevel(boolean infoOn)
```

#### Parameters

```
infoOn
```

#### Returns

```
None
```

## isWarningOn

Checks if warning logging is enabled

```
CallLogger.isWarningOn()
```

#### Parameters

```
None
```

#### Returns

```
boolean
```

## setWarningLevel

Sets the warning logging level.

```
CallLogger.setWarningLevel(boolean warningOn)
```

#### Parameters

```
warningOn
```

#### Returns

```
None
```

## isErrorOn

Checks if error logging is enabled

```
CallLogger.isErrorOn()
```

#### Parameters

```
None
```

#### Returns

```
boolean
```

## setErrorLevel

Sets the error logging level

```
CallLogger.setErrorLevel(boolean errorOn)
```

#### Parameters

```
errorOn
```

#### Returns

```
None
```

## a

```
CallLogger.
```

#### Parameters

```
```

#### Returns

```
None
```

## debug

Logs a debug message if debug logging is enabled

```
debug(String msg)
```

#### Parameters

```
msg
```

#### Returns

```
None
```

## info

Logs an info message if info logging is enabled

```
CallLogger.info(String msg)
```

#### Parameters

```
msg
```

#### Returns

```
None
```

## warn

Logs an warning message if warning logging is enabled

```
CallLogger.warn(String msg)
```

#### Parameters

```
msg
```

#### Returns

```
None
```

## error

Logs an error message if error logging is enabled.

```
CallLogger.error(String msg)
```

#### Parameters

```
msg
```

#### Returns

```
None
```

## critical

Logs a critical message

```
CallLogger.critical(String msg)
```

#### Parameters

```
msg
```

#### Returns

```
None
```

## getLogs

Retrieves the list of logs

```
CallLogger.getLogs()
```

#### Parameters

```
None
```

#### Returns

```
List<Object>
```

## setLogLevel

Sets the logging level based on a specified string

```
CallLogger.setLogLevel(String logLevel)
```

#### Parameters

```
logLevel
```

#### Returns

```
None
```

## isCollectCallLogs

Checks if call logs collection is enabled

```
CallLogger.isCollectCallLogs()
```

#### Parameters

```
None
```

#### Returns

```
boolean
```

## setCollectCallLogs

Sets the flag to enable or disable call logs collection

```
CallLogger.setCollectCallLogs(boolean collectCallLogs)
```

#### Parameters

```
collectCallLogs
```

#### Returns

```
None
```


---

# 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://trillo.gitbook.io/trillo-workbench-java-sdk/calllogger-logging-level-apis.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.
