Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Linux C/C++ logging
A journey into speed...
Mark Veltzer
Mark.veltzer@gmail.com
Speeding up syslog
● Filter the messages at the source
● Letting syslog filter out your messages
according to various para...
Putting syslog output in RAM
● It usually OK for many many systems out there
● Does not add to the load on the IO system (...
Various syslog implementations
● rsyslog
● syslog-ng
● klogd
● Busybox syslogd
● dsyslog
● inetutils-syslogd
● sysklogd
Logging libraries
● syslog native API
● evtlog
● ACE
● Boost
● Liblog4c
● Liblog4cpp
● socklog
● bobcat
● vanessa-logger
Logging from the command line
● Use the logger(1) utility
● Part of the bsdutils package
● Example: logger hello
● Many op...
Logging from the command line
● Use the logger(1) utility
● Part of the bsdutils package
● Example: logger hello
● Many op...
Upcoming SlideShare
Loading in …5
×

Linux logging

1,280 views

Published on

Published in: Technology, Business
  • Be the first to comment

  • Be the first to like this

Linux logging

  1. 1. Linux C/C++ logging A journey into speed... Mark Veltzer Mark.veltzer@gmail.com
  2. 2. Speeding up syslog ● Filter the messages at the source ● Letting syslog filter out your messages according to various parameters ● Have a separate hard drive just for logging (to avoid IO pressure on the main one) ● Telling syslog to put your log messages in RAM instead of permanent storage
  3. 3. Putting syslog output in RAM ● It usually OK for many many systems out there ● Does not add to the load on the IO system (you don't usually have a spare drive) ● Makes syslog perform much faster in a log of the synchronous implementations of syslog out there ● Should be rotated or removed from time to time, ofcourse
  4. 4. Various syslog implementations ● rsyslog ● syslog-ng ● klogd ● Busybox syslogd ● dsyslog ● inetutils-syslogd ● sysklogd
  5. 5. Logging libraries ● syslog native API ● evtlog ● ACE ● Boost ● Liblog4c ● Liblog4cpp ● socklog ● bobcat ● vanessa-logger
  6. 6. Logging from the command line ● Use the logger(1) utility ● Part of the bsdutils package ● Example: logger hello ● Many options to control priority, tag, socket, process id logging and more ● Good for scripts and languages that do not have a more integrated API to syslog
  7. 7. Logging from the command line ● Use the logger(1) utility ● Part of the bsdutils package ● Example: logger hello ● Many options to control priority, tag, socket, process id logging and more ● Good for scripts and languages that do not have a more integrated API to syslog

×