Skip to content

Commit 9fd0378

Browse files
author
Daniil Fedotov
committed
Snippets to test log config.
1 parent fd7cd65 commit 9fd0378

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

test/config_schema_SUITE_data/rabbit.snippets

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,4 +432,39 @@ credential_validator.regexp = ^abc\\d+",
432432
[{rabbit,[{proxy_protocol,true}]}],[]},
433433
{proxy_protocol_off,
434434
"proxy_protocol = false",
435-
[{rabbit,[{proxy_protocol,false}]}],[]}].
435+
[{rabbit,[{proxy_protocol,false}]}],[]},
436+
{log_debug_file,
437+
"log.file.level = debug",
438+
[{rabbit,[{log, [{file, [{level, debug}]}]}]}],
439+
[]},
440+
{log_debug_console,
441+
"log.console = true
442+
log.console.level = debug",
443+
[{rabbit,[{log, [{console, [{enabled, true}, {level, debug}]}]}]}],
444+
[]},
445+
{log_debug_syslog,
446+
"log.syslog = true
447+
log.syslog.level = debug",
448+
[{rabbit,[{log, [{syslog, [{enabled, true}, {level, debug}]}]}]}],
449+
[]},
450+
{log_file_name,
451+
"log.file = file_name",
452+
[{rabbit,[{log, [{file, [{file, "file_name"}]}]}]}],
453+
[]},
454+
{log_file_disabled,
455+
"log.file = false",
456+
[{rabbit,[{log, [{file, [{file, false}]}]}]}],
457+
[]},
458+
{log_category_level,
459+
"log.connection.level = debug
460+
log.channel.level = error",
461+
[{rabbit,[{log, [{categories, [{connection, [{level, debug}]},
462+
{channel, [{level, error}]}]}]}]}],
463+
[]},
464+
{log_category_file,
465+
"log.connection.file = file_name_connection
466+
log.channel.file = file_name_channel",
467+
[{rabbit,[{log, [{categories, [{connection, [{file, "file_name_connection"}]},
468+
{channel, [{file, "file_name_channel"}]}]}]}]}],
469+
[]}
470+
].

0 commit comments

Comments
 (0)