> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Class Logger

Namespace: [OpenTD.Logging](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Logging)\
Assembly: OpenTD.dll

Writes messages to log files or other destinations.
Use LoggerFactory to generate new loggers.

```csharp theme={null}
public class Logger : ICRLogger
```

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) ←
[Logger](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Logging.Logger.md)

## Implements

ICRLogger

## Inherited Members

[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring),
[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object\)),
[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals\(system-object-system-object\)),
[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals),
[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode),
[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype),
[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone)

## Methods

### Close()

```csharp theme={null}
public void Close()
```

### IsErrorEnabled()

```csharp theme={null}
public bool IsErrorEnabled()
```

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### IsInfoEnabled()

```csharp theme={null}
public bool IsInfoEnabled()
```

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### IsVerboseEnabled()

```csharp theme={null}
public bool IsVerboseEnabled()
```

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### IsWarnEnabled()

```csharp theme={null}
public bool IsWarnEnabled()
```

#### Returns

[bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### Log(TraceEventType, string)

```csharp theme={null}
public void Log(TraceEventType level, string message)
```

#### Parameters

`level` [TraceEventType](https://learn.microsoft.com/dotnet/api/system.diagnostics.traceeventtype)

`message` [string](https://learn.microsoft.com/dotnet/api/system.string)

### LogError(string)

```csharp theme={null}
public void LogError(string message)
```

#### Parameters

`message` [string](https://learn.microsoft.com/dotnet/api/system.string)

### LogError(string, params object\[])

```csharp theme={null}
public void LogError(string format, params object[] strParams)
```

#### Parameters

`format` [string](https://learn.microsoft.com/dotnet/api/system.string)

`strParams` [object](https://learn.microsoft.com/dotnet/api/system.object)\[]

### LogInfo(string)

```csharp theme={null}
public void LogInfo(string message)
```

#### Parameters

`message` [string](https://learn.microsoft.com/dotnet/api/system.string)

### LogInfo(string, params object\[])

```csharp theme={null}
public void LogInfo(string format, params object[] strParams)
```

#### Parameters

`format` [string](https://learn.microsoft.com/dotnet/api/system.string)

`strParams` [object](https://learn.microsoft.com/dotnet/api/system.object)\[]

### LogVerbose(string)

```csharp theme={null}
public void LogVerbose(string message)
```

#### Parameters

`message` [string](https://learn.microsoft.com/dotnet/api/system.string)

### LogVerbose(string, params object\[])

```csharp theme={null}
public void LogVerbose(string format, params object[] strParams)
```

#### Parameters

`format` [string](https://learn.microsoft.com/dotnet/api/system.string)

`strParams` [object](https://learn.microsoft.com/dotnet/api/system.object)\[]

### LogWarn(string)

```csharp theme={null}
public void LogWarn(string message)
```

#### Parameters

`message` [string](https://learn.microsoft.com/dotnet/api/system.string)

### LogWarn(string, params object\[])

```csharp theme={null}
public void LogWarn(string format, params object[] strParams)
```

#### Parameters

`format` [string](https://learn.microsoft.com/dotnet/api/system.string)

`strParams` [object](https://learn.microsoft.com/dotnet/api/system.object)\[]

## See Also

[LoggerFactory](https://developer.synopsys.com/docs/thermal-desktop/opentd-reference/net4-reference/OpenTD.Logging.LoggerFactory.md)
