Skip to content
Snippets Groups Projects
Commit 49cb4807 authored by Eric Cano's avatar Eric Cano
Browse files

Fixed default log line length.

Set default to 8k as seen in this documentation:
http://www.rsyslog.com/doc/v8-stable/configuration/global/index.html.
parent 594366e1
Branches
Tags
No related merge requests found
......@@ -145,10 +145,10 @@ size_t Logger::determineMaxMsgLen() {
// governed by the syslog RFC: http://www.faqs.org/rfcs/rfc3164.html
// Check that the size of messages falls within acceptable limits
if((msgSize >= DEFAULT_SYSLOG_MSGLEN) && (msgSize <= LOG_MAX_LINELEN)) {
if((msgSize >= LOG_MIN_MSGLEN) && (msgSize <= LOG_MAX_LINELEN)) {
return msgSize;
} else {
return DEFAULT_SYSLOG_MSGLEN;
return LOG_MIN_MSGLEN;
}
}
......
......@@ -203,12 +203,12 @@ protected:
/**
* Default size of a syslog message.
*/
static const size_t DEFAULT_SYSLOG_MSGLEN = 1024;
static const size_t LOG_MIN_MSGLEN = 1024;
/**
* Default size of a rsyslog message.
*/
static const size_t DEFAULT_RSYSLOG_MSGLEN = 2000;
static const size_t DEFAULT_RSYSLOG_MSGLEN = 8192;
/**
* Maximum length of a log message.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment