Victor Julien
b3bf7a5729
output: introduce config and perf output levels
...
Goal is to reduce info output
9 years ago
Victor Julien
554080cced
lua: print lua script func/line/file in SCLog* funcs
...
Instead of printing the func/line/file of the C code SCLog* wrappers,
print them from inside the lua script. They are not always available.
9 years ago
Victor Julien
8394b38941
cppcheck: work around snprintf warning
...
Cppcheck 1.72 gives a warning on the following code pattern:
char blah[32] = "";
snprintf(blah, sizeof(blah), "something");
The warning is:
(error) Buffer is accessed out of bounds.
While this appears to be a FP, in most cases the initialization to ""
was unnecessary as the snprintf statement immediately follows the
variable declaration.
10 years ago
Victor Julien
334e8656bf
introduce fatal error macro's
...
Add 'FatalError' and 'FatalErrorConditonal' that will take the same
args as SCLogError.
FatalError logs the error using SCLogError and then exits with return
code EXIT_FAILURE.
FatalErrorOnInit does the same only during init and with
--init-errors-fatal enabled, otherwise it just calls SCLogWarning. So
then the macro returns to the caller.
Implement this for output setup.
10 years ago
Victor Julien
45fc619f79
logging: json output
...
Make JSON output optional.
Cleanups.
10 years ago
Victor Julien
b51c4e608f
logging: optional colors output
...
Construct message per output method.
10 years ago
Victor Julien
1927b3000c
output: cleanup
10 years ago
Victor Julien
b30bdc21b5
logging: cleanup output API
...
Make SCLogMessage master of the logging. Reduces complexity
of the SCLog macro's.
10 years ago
Victor Julien
d6fc6e874f
log: reorganize SCLogOPIfaceCtx to make it more efficient
10 years ago
Eric Leblond
2be194d03f
suricata: add -v[v] option to increase verbosity
...
This patch adds a -v option to suricata. It increases the log level
defined in the YAML.
12 years ago
Eric Leblond
4726e02afb
logging: add warning if no output module is selected
...
If no daemon compatible logging module is selected, a message is
displayed to avoid the user to look like mad for messages.
13 years ago
Anoop Saldanha
c22755fec5
fix cppcheck analyzer warnings - bug 439
14 years ago
Victor Julien
28e15be526
Clean up default output. Use simpler output format for releases.
14 years ago
Eric Leblond
1bebb9831d
logging: don't display debug message before setting params.
14 years ago
Anoop Saldanha
420befb180
Changed my email address to anoopsaldanha at gmail dot com from my current one
14 years ago
Anoop Saldanha
b819643635
coverity - logging system buffer overrun fix
14 years ago
Victor Julien
dd97d136a9
Rearrange syslog.h including so we won't fail to build on win32.
14 years ago
Victor Julien
0d6d0ae371
Increase logline max length.
15 years ago
Eric Leblond
4e9231266a
Compilation fix for OpenBSD and win32.
...
This patch fixes compilation on OpenBSD platform. It is running
fine on a pcap file. The patch should also fix compilation on
WIN32 platform but this is not tested.
15 years ago
Gurvinder Singh
e5edc6e8e3
add the support to log the fast.log alerts type to syslog
15 years ago
William Metcalf
ce01927515
Import of GPLv2 Header 050410
15 years ago
Victor Julien
b7c089df42
Fix a couple of harmless compiler warnings.
16 years ago
Jan Jezek
fe6a72befc
Code is now compilable on the Win32 platform
16 years ago
Eric Leblond
84dfc0172a
gcc warning fixes.
...
This patch fixes gcc warning:
warning: suggest braces around empty body in an ‘if’ statement
This was the case in when the macro SCLogDebug was used:
if (ssn != NULL)
SCLogDebug("ssn->alproto %"PRIu16"", ssn->alproto);
It also fixes a signed-unsigned comparison.
16 years ago
Anoop Saldanha
06a640e794
fix for bug #47
16 years ago
Anoop Saldanha
a83f7abcc1
logging module bug 6 fix
16 years ago
Victor Julien
b7bac14040
Fixup code to compile with -Wall -Werror -Wextra -Wno-unused-parameter compiler options.
16 years ago
Victor Julien
10cc9d5b6a
Add icmp flow handling.
16 years ago
Jason Ish
28cad3429c
An example of how logging could be configured from the log file.
16 years ago
Pablo Rincon
769022f4be
Adding support for Mac OS X, FreeBSD, centrailizing mutex/spins/conditions in a macro API, and some unittests
16 years ago
Victor Julien
2cfa284999
Fix app layer detect to actually work.
16 years ago
Victor Julien
6346d1ddcf
Add function name printing to the default output while we're still in development.
16 years ago
William Metcalf
0d13505f0e
change debug code around to use global log dir
16 years ago
Victor Julien
43a50c538b
Change default log settings to be more development friendly. Breaks one test.
16 years ago
Victor Julien
968d8df12b
More logging API usage. Changed logging macro's slightly so the vars inside them won't conflict with vars used by the calling function.
16 years ago
Victor Julien
91bc83e5c6
More logging API usage changes.
16 years ago
Anoop Saldanha
b3a7f4c015
Update for the logging module and symbol renaming
16 years ago
Anoop Saldanha
157d5e8113
Implementation of the logging module
16 years ago