# ログ機能

`Windows` `macOS` `Linux` `RasPi`

TWELITE と PC 間のシリアル通信のログを記録できます。

### ログの開始

`Windows` `macOS` `Linux` `RasPi`

TWELITE と PC 間のシリアル通信のログを記録できます。

Alt(Cmd)+Lキーを押します。

![](/files/G5z11C3nr2rOfHTuiW8g)

### ログ記録の終了

ログ記録中にもう一度 Alt(Cmd) + L キーを押します。

![](/files/JG51jhtxKzgvY0fD5b93)

ログの記録が終了し、その時点のログファイルをOS標準の方法(Windowsならメモ帳、macOS ならコンソール)で開きます。

{% hint style="warning" %}
Raspberry Pi では、ログファイルの保存だけを行います。ファイルを開く機能はありません。
{% endhint %}

### ログの記録

TWELITE から受信した文字列は、そのまま記録されます。

TWELITE に送信した文字列は、１文字ずつ記録されます。Windowsの場合は `｢ ｣`、 macOS/Linux/RaspBerryPiは `« »` で囲われます。

例えば`«t»`とある場合は、キーボードから`t`を入力したことを意味します。

### ログ記録のフォルダとファイル名

`Windows` `macOS` `Linux` `RasPi`

`{TWELITE STAGE APP の実行形式のあるフォルダ}/log` にログ開始時の日時を元にしたファイル名で保存されます。

`Alt(Cmd)`+`Shift`+`L` を押すことで、そのフォルダを開きます。

![](/files/y34jKU8ESl48sxOZLwYx)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://stage.twelite.info/usage/logging.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
