~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/syslog/errmsg.cc

  • Committer: Brian Aker
  • Date: 2011-10-20 02:45:57 UTC
  • mto: This revision was merged to the branch mainline in revision 2444.
  • Revision ID: brian@tangent.org-20111020024557-33gjpv1ixdws52al
Update naming convention for priority.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <drizzled/gettext.h>
23
23
#include <drizzled/errmsg_print.h>
24
24
 
25
 
#include <stdarg.h>
 
25
#include <cstdarg>
26
26
 
27
27
#include <plugin/syslog/errmsg.h>
28
28
#include <plugin/syslog/wrap.h>
41
41
                            facility.c_str());
42
42
    _facility= WrapSyslog::getFacilityByName("local0");
43
43
  }
44
 
 
45
 
  std::cerr << "Starting syslog with " << _facility << std::endl;
46
44
}
47
45
 
48
 
bool error_message::Syslog::errmsg(drizzled::error::level_t priority, const char *format, va_list ap)
 
46
bool error_message::Syslog::errmsg(drizzled::error::priority_t priority, const char *format, va_list ap)
49
47
{
50
48
  WrapSyslog::singleton().vlog(_facility, priority, format, ap);
51
49
  return false;