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

8.3.17. log_put

8.3.17.1. Summary

log_put - ログ出力

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

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

8.3.17.2. Syntax

log_put level message

8.3.17.3. Usage

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

8.3.17.4. Parameters

level

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

EMERG ALERT CRIT error warning notice info debug

message

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

8.3.17.5. Return value

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

成功かどうかのフラグ

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

8.3.17.6. See also

log_level log_reopen

Table Of Contents

Previous topic

8.3.16. log_level

Next topic

8.3.18. log_reopen

This Page