<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) &gt; [getNewLogger](./ibm-cloud-sdk-core.getnewlogger.md)

## getNewLogger() function

Return a new logger, formatted with a particular name. The logging functions, in order of increasing verbosity, are: `error`<!-- -->, `warn`<!-- -->, `info`<!-- -->, `verbose`<!-- -->, and `debug`<!-- -->.

The logger will be an instance of the `debug` package and utilizes its support for configuration with environment variables.

Additionally, the logger will be turned on automatically if the "NODE\_DEBUG" environment variable is set to "axios".

**Signature:**

```typescript
export declare function getNewLogger(moduleName: string): SDKLogger;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

moduleName


</td><td>

string


</td><td>

the namespace for the logger. The name will appear in the logs and it will be the name used for configuring the log level.


</td></tr>
</tbody></table>
**Returns:**

[SDKLogger](./ibm-cloud-sdk-core.sdklogger.md)

the new logger

