summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Fedotov <dfedotov@pivotal.io>2017-08-30 15:08:05 +0100
committerDaniil Fedotov <dfedotov@pivotal.io>2017-08-30 15:08:05 +0100
commit9fd03786657f9ea411a10150e37443254cdf7fd1 (patch)
tree9f33020d941afbd8da733b95a227511626cb1e0a
parentfd7cd65678597e94e34033dd0dc5148646877e9a (diff)
downloadrabbitmq-server-git-9fd03786657f9ea411a10150e37443254cdf7fd1.tar.gz
Snippets to test log config.
-rw-r--r--test/config_schema_SUITE_data/rabbit.snippets37
1 files changed, 36 insertions, 1 deletions
diff --git a/test/config_schema_SUITE_data/rabbit.snippets b/test/config_schema_SUITE_data/rabbit.snippets
index 5d03ba1b13..cbe1eb4624 100644
--- a/test/config_schema_SUITE_data/rabbit.snippets
+++ b/test/config_schema_SUITE_data/rabbit.snippets
@@ -432,4 +432,39 @@ credential_validator.regexp = ^abc\\d+",
[{rabbit,[{proxy_protocol,true}]}],[]},
{proxy_protocol_off,
"proxy_protocol = false",
- [{rabbit,[{proxy_protocol,false}]}],[]}].
+ [{rabbit,[{proxy_protocol,false}]}],[]},
+ {log_debug_file,
+ "log.file.level = debug",
+ [{rabbit,[{log, [{file, [{level, debug}]}]}]}],
+ []},
+ {log_debug_console,
+ "log.console = true
+ log.console.level = debug",
+ [{rabbit,[{log, [{console, [{enabled, true}, {level, debug}]}]}]}],
+ []},
+ {log_debug_syslog,
+ "log.syslog = true
+ log.syslog.level = debug",
+ [{rabbit,[{log, [{syslog, [{enabled, true}, {level, debug}]}]}]}],
+ []},
+ {log_file_name,
+ "log.file = file_name",
+ [{rabbit,[{log, [{file, [{file, "file_name"}]}]}]}],
+ []},
+ {log_file_disabled,
+ "log.file = false",
+ [{rabbit,[{log, [{file, [{file, false}]}]}]}],
+ []},
+ {log_category_level,
+ "log.connection.level = debug
+ log.channel.level = error",
+ [{rabbit,[{log, [{categories, [{connection, [{level, debug}]},
+ {channel, [{level, error}]}]}]}]}],
+ []},
+ {log_category_file,
+ "log.connection.file = file_name_connection
+ log.channel.file = file_name_channel",
+ [{rabbit,[{log, [{categories, [{connection, [{file, "file_name_connection"}]},
+ {channel, [{file, "file_name_channel"}]}]}]}]}],
+ []}
+].