Navigation Menu

Skip to content

Commit

Permalink
[doc] default log level is changed to NOTICE from DUMP.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jun 21, 2011
1 parent e45bdac commit 37ab04a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions doc/ja/source/userguide.rst
Expand Up @@ -189,28 +189,28 @@ groongaストレージエンジンではデフォルトでログの出力を行
2010-10-07 17:32:44.934048|d|46953940|hash get not found (key=test)
2010-10-07 17:32:44.936113|d|46953940|hash put (key=test)

現在のgroongaストレージエンジンは開発バージョンということもあり、ログのデフォルトの出力レベルは最大(=DUMP)となっております。
ログのデフォルトの出力レベルはNOTICE(必要な情報のみ出力。デバッグ情報などは出力しない)となっております。

ログの出力レベルは ``groonga_log_level`` というシステム変数で確認することができます(グローバル変数)。またSET文で動的に出力レベルを変更することもできます。 ::

mysql> SHOW VARIABLES LIKE 'groonga_log_level';
+-------------------+-------+
| Variable_name | Value |
+-------------------+-------+
| groonga_log_level | DUMP |
+-------------------+-------+
1 row in set (0.00 sec)
mysql> SET GLOBAL groonga_log_level=NOTICE;
Query OK, 0 rows affected (0.05 sec)
mysql> SHOW VARIABLES LIKE 'groonga_log_level';
+-------------------+--------+
| Variable_name | Value |
+-------------------+--------+
| groonga_log_level | NOTICE |
+-------------------+--------+
1 row in set (0.00 sec)
mysql> SET GLOBAL groonga_log_level=DUMP;
Query OK, 0 rows affected (0.05 sec)
mysql> SHOW VARIABLES LIKE 'groonga_log_level';
+-------------------+-------+
| Variable_name | Value |
+-------------------+-------+
| groonga_log_level | DUMP |
+-------------------+-------+
1 row in set (0.00 sec)

設定可能なログレベルは以下の通りです。

Expand Down

0 comments on commit 37ab04a

Please sign in to comment.