> ## 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.

# OpenTD.Logging.Logger Class Reference

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

Inheritance diagram for OpenTD.Logging.Logger:

![](https://mintcdn.com/synopsys-00a47cbc/Srh1_f--TdKCLyqD/docs/thermal-desktop/opentd-net4-reference/class_open_t_d_1_1_logging_1_1_logger.png?fit=max\&auto=format\&n=Srh1_f--TdKCLyqD\&q=85\&s=7c7148cc49ce72d4dc247a2188a6538a)

## Public Member Functions

| Type | Name |
| - | - |
| void | [Close](#ac135d6c20b3558a4e64a1940be9c9d03) () |
| bool | [IsErrorEnabled](#ab5c2e08497cd1a7babd3677bc904e581) () |
| bool | [IsInfoEnabled](#a4565612fe4f3c1fa76c8d805cf4ed7f5) () |
| bool | [IsVerboseEnabled](#a252be5dd179711fe2b0da8d5858e9b22) () |
| bool | [IsWarnEnabled](#adac143f66494e872e3397f1e3f2767ea) () |
| void | [Log](#a8b0667c4e2b407771b6bda97d5a5020c) (TraceEventType level, string message) |
| void | [LogError](#a6f6c54e5097ad40fd15eae5e40ad28d4) (string message) |
| void | [LogError](#a6225e134f4eddbb515c361b760feadca) (string format, params object\[] strParams) |
| void | [LogInfo](#a47ed328417de9c418854aa34ffebb897) (string message) |
| void | [LogInfo](#a84dbf2681155f41dce13e59ec1c4bd83) (string format, params object\[] strParams) |
| void | [LogVerbose](#a8cb12b62dcfdabc41c3affd7aa7a157f) (string message) |
| void | [LogVerbose](#a014514682a6c0277d4b521fc721afa24) (string format, params object\[] strParams) |
| void | [LogWarn](#acecf132cd7804e56287f5e13600dc633) (string message) |
| void | [LogWarn](#adeac7b3a17fc69a6790f75bdae1fffff) (string format, params object\[] strParams) |

## Detailed Description

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

**See also**

OpenTD.Logging.LoggerFactory

## Member Function Documentation

### Close()

```csharp theme={null}
void OpenTD.Logging.Logger.Close()
```

`inline`

### IsErrorEnabled()

```csharp theme={null}
bool OpenTD.Logging.Logger.IsErrorEnabled()
```

`inline`

### IsInfoEnabled()

```csharp theme={null}
bool OpenTD.Logging.Logger.IsInfoEnabled()
```

`inline`

### IsVerboseEnabled()

```csharp theme={null}
bool OpenTD.Logging.Logger.IsVerboseEnabled()
```

`inline`

### IsWarnEnabled()

```csharp theme={null}
bool OpenTD.Logging.Logger.IsWarnEnabled()
```

`inline`

### Log()

```csharp theme={null}
void OpenTD.Logging.Logger.Log(
    TraceEventType level,
    string message
)
```

`inline`

### LogError() \[1/2]

```csharp theme={null}
void OpenTD.Logging.Logger.LogError(
    string format,
    params object[] strParams
)
```

`inline`

### LogError() \[2/2]

```csharp theme={null}
void OpenTD.Logging.Logger.LogError(string message)
```

`inline`

### LogInfo() \[1/2]

```csharp theme={null}
void OpenTD.Logging.Logger.LogInfo(
    string format,
    params object[] strParams
)
```

`inline`

### LogInfo() \[2/2]

```csharp theme={null}
void OpenTD.Logging.Logger.LogInfo(string message)
```

`inline`

### LogVerbose() \[1/2]

```csharp theme={null}
void OpenTD.Logging.Logger.LogVerbose(
    string format,
    params object[] strParams
)
```

`inline`

### LogVerbose() \[2/2]

```csharp theme={null}
void OpenTD.Logging.Logger.LogVerbose(string message)
```

`inline`

### LogWarn() \[1/2]

```csharp theme={null}
void OpenTD.Logging.Logger.LogWarn(
    string format,
    params object[] strParams
)
```

`inline`

### LogWarn() \[2/2]

```csharp theme={null}
void OpenTD.Logging.Logger.LogWarn(string message)
```

`inline`

The documentation for this class was generated from the following file:

* C:/Users/mgarrett/source/repos/BuildsTdSuite/builds/TDDEV\_ALPHA/buildXX/OpenTD/Logging/**Logger.cs**
