groonga - An open-source fulltext search engine and column store.

8.3.16. log_put

8.3.16.1. 名前

log_put - ログ出力

8.3.16.2. 書式

log_put level message

8.3.16.3. 説明

groonga組込コマンドの一つであるlog_putについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。

log_putは、ログにmessageを出力します。

8.3.16.4. 引数

level

設定するログ出力レベルの値を以下のいずれかで指定します。

EMERG ALERT CRIT error warning notice info debug

message

出力する文字列を指定します。

8.3.16.5. 返値

8.3.16.5.1. json形式

[成功かどうかのフラグ]

``成功かどうかのフラグ``

  エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。

8.3.16.6. 例

log_put ERROR ****MESSAGE****
[true]

8.3.16.7. 関連項目

log_level log_reopen

Table Of Contents

Previous topic

8.3.15. log_level

Next topic

8.3.17. log_reopen

This Page