# SystemLogger

SystemLogger 节点用于获取设备的
[SystemInformation](https://docs.luxonis.com/software-v3/depthai/depthai-components/messages/system_information.md)。

## 如何放置

#### Python

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

#### C++

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

## 输入和输出

## 用法

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

// 通过 XLink 将系统信息发送到主机
auto xout = pipeline.create<dai::node::XLinkOut>();
xout->setStreamName("sysinfo");
logger->out.link(xout->input);
```

## 功能示例

 * [系统信息](https://docs.luxonis.com/software-v3/depthai/examples/rvc2/system_logger/system_information.md)

## 参考

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

### 需要帮助？

请前往 [OAKChina 官网](https://www.oakchina.cn/) 获取技术支持或解答您的任何疑问。
