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

# Structure ansys::dpf::core::logging

![][C++]
![][public]

## Inner classes

* [ansys::dpf::core::logging::LoggerConfig](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-core-logging-loggerconfig.md)
* [ansys::dpf::core::logging::internal](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/structansys-dpf-core-logging-internal.md)
* [ansys::dpf::core::logging::Logger](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-core-logging-logger.md)

## Members

* [eLoggerSink](#structansys-dpf-core-logging-1a9cf8329ed6cbf904ab61fa7c891f5483)
* [eLogLevel](#structansys-dpf-core-logging-1a48490078df162c963f2b931e6cd5bfd8)
* [flushAllLoggers](#structansys-dpf-core-logging-1ac86b0ab3c88a16cce14edad88b99f2a0)
* [getLogger](#structansys-dpf-core-logging-1af4e6af1f9879fb1fc1757559617376e0)
* [registerLogger](#structansys-dpf-core-logging-1aad2ae0b0c211e19c584b6bc4e807fa7f)

## Public types

### Enumeration type eLogLevel

![][public]

```cpp theme={null}
enum eLogLevel {
  Unknown = -1,
  Trace = 0,
  Debug = 1,
  Info = 2,
  Warn = 3,
  Error = 4,
  Critical = 5
}
```

#### Enumerator Unknown

#### Enumerator Trace

#### Enumerator Debug

#### Enumerator Info

#### Enumerator Warn

#### Enumerator Error

#### Enumerator Critical

### Enumeration type eLoggerSink

![][public]

```cpp theme={null}
enum eLoggerSink {
  Unknown = -1,
  Stdout = 0,
  File = 1
}
```

#### Enumerator Unknown

#### Enumerator Stdout

#### Enumerator File

## Public static functions

### Function flushAllLoggers

![][public]
![][static]

```cpp theme={null}
static void ansys::dpf::core::logging::flushAllLoggers()
```

Flush all loggers. This function is thread-safe.

**Return type**: void

### Function registerLogger

![][public]
![][static]

```cpp theme={null}
static Logger ansys::dpf::core::logging::registerLogger(std::string const &logger_name)
```

Registers a logger into the logging infrastructure. This function is thread-safe.

**Parameters**:

* **logger\_name**: The logger name. This will appear in the log message to identify the message.

**Returns**:

std::shared\_ptr\<Logger> The registered logger.

**See also**: [LoggerConfig](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-core-logging-loggerconfig.md)

**Parameters**:

* std::string const & **logger\_name**

**Return type**: [Logger](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-core-logging-logger.md)

### Function getLogger

![][public]
![][static]

```cpp theme={null}
static Logger ansys::dpf::core::logging::getLogger(std::string const &logger_name)
```

Get a [Logger](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-core-logging-logger.md) by its name. This function is thread-safe.

**Parameters**:

* **logger\_name**: The logger name. This will appear in the log message to identify the message.

**Returns**:

std::shared\_ptr\<Logger>

**Parameters**:

* std::string const & **logger\_name**

**Return type**: [Logger](https://developer.synopsys.com/docs/dpf/dpf-cpp-client-library/api-reference/classansys-dpf-core-logging-logger.md)

[C++]: https://img.shields.io/badge/language-C%2B%2B-blue "C++"

[const]: https://img.shields.io/badge/-const-lightblue "const"

[public]: https://img.shields.io/badge/-public-brightgreen "public"

[static]: https://img.shields.io/badge/-static-lightgrey "static"
