void init_proto_tests(void) { init_and_load_syslogformat_module(); log_proto_server_options_defaults(&proto_server_options); log_proto_server_options_init(&proto_server_options, configuration); }
void log_reader_options_defaults(LogReaderOptions *options) { log_source_options_defaults(&options->super); log_proto_server_options_defaults(&options->proto_options.super); msg_format_options_defaults(&options->parse_options); options->fetch_limit = 10; }
void log_reader_options_defaults(LogReaderOptions *options) { log_source_options_defaults(&options->super); log_proto_server_options_defaults(&options->proto_options.super); msg_format_options_defaults(&options->parse_options); options->fetch_limit = 10; if (configuration && cfg_is_config_version_older(configuration, 0x0300)) { msg_warning_once("WARNING: input: sources do not remove new-line characters from messages by default from " VERSION_3_0 ", please add 'no-multi-line' flag to your configuration if you want to retain this functionality", NULL); options->parse_options.flags |= LP_NO_MULTI_LINE; } }