# SystemLogger

SystemLogger node is used to get
[SystemInformation](https://docs.luxonis.com/software/depthai-components/messages/system_information.md) of the device.

## How to place it

#### Python

```python
pipeline = dai.Pipeline()
logger = pipeline.create(dai.node.SystemLogger)
```

#### C++

```cpp
dai::Pipeline pipeline;
auto logger = pipeline.create<dai::node::SystemLogger>();
```

## Inputs and Outputs

## Usage

#### Python

```python
pipeline = dai.Pipeline()
logger = pipeline.create(dai.node.SystemLogger)
logger.setRate(1)  # 1 Hz

# Send system info to the host via XLink
xout = pipeline.create(dai.node.XLinkOut)
xout.setStreamName("sysinfo")
logger.out.link(xout.input)
```

#### C++

```cpp
dai::Pipeline pipeline;
auto logger = pipeline.create<dai::node::SystemLogger>();
logger->setRate(1.0f);  // 1 Hz

// Send system info to the host via XLink
auto xout = pipeline.create<dai::node::XLinkOut>();
xout->setStreamName("sysinfo");
logger->out.link(xout->input);
```

## Examples of functionality

 * [System information](https://docs.luxonis.com/software/depthai/examples/system_information.md)

## Reference

### depthai.node.SystemLogger(depthai.Node)

Kind: Class

SystemLogger node. Send system information periodically.

#### getRate(self) -> float: float

Kind: Method

Gets logging rate, at which messages will be sent out

#### setRate(self, hz: typing.SupportsFloat)

Kind: Method

Specify logging rate, at which messages will be sent out

Parameter ``hz``:
Sending rate in hertz (messages per second)

#### out

Kind: Property

Outputs SystemInformation message that carries various system information like
memory and CPU usage, temperatures, ...

### Need assistance?

Head over to [Discussion Forum](https://discuss.luxonis.com/) for technical support or any other questions you might have.
