# SystemLogger

SystemLogger node is used to get
[SystemInformation](https://docs.luxonis.com/software-v3/depthai/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

sysLogQueue = logger.out.createOutputQueue()
```

#### 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-v3/depthai/examples/rvc2/system_logger/system_information.md)

## Reference

### dai::node::SystemLogger

Kind: class

SystemLogger node. Send system information periodically.

#### Output out

Kind: variable

Outputs SystemInformation [RVC4] message that carries various system information like memory and CPU usage, temperatures, ... For
series 2 devices output SystemInformation message, for series 4 devices output SystemInformationRVC4 message

#### void setRate(float hz)

Kind: function

Specify logging rate, at which messages will be sent out parameters: hz: Sending rate in hertz (messages per second)

#### float getRate()

Kind: function

Gets logging rate, at which messages will be sent out

#### void buildInternal()

Kind: function

Function called from within the

#### DeviceNodeCRTP()

Kind: function

#### DeviceNodeCRTP(const std::shared_ptr< Device > & device)

Kind: function

#### DeviceNodeCRTP(std::unique_ptr< Properties > props)

Kind: function

#### DeviceNodeCRTP(std::unique_ptr< Properties > props, bool confMode)

Kind: function

#### DeviceNodeCRTP(const std::shared_ptr< Device > & device, std::unique_ptr< Properties > props, bool confMode)

Kind: function

### Need assistance?

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