Data Structures | Functions | Variables

ink_syslog.cc File Reference

A brief file description. More...

#include "libts.h"
Include dependency graph for ink_syslog.cc:

Go to the source code of this file.

Data Structures

struct  syslog_fac

Functions

int facility_string_to_int (const char *str)

Variables

static const syslog_fac convert_table []
static const int convert_table_size = sizeof(convert_table) / sizeof(syslog_fac) - 1

Detailed Description

A brief file description.

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file ink_syslog.cc.


Function Documentation

int facility_string_to_int ( const char *  str  ) 

Definition at line 70 of file ink_syslog.cc.

References convert_table_size, and syslog_fac::fac_int.

Referenced by syslog_log_configure().


Variable Documentation

const syslog_fac convert_table[] [static]
Initial value:
 {
  {(char *) "LOG_KERN", (char *) "KERN", LOG_KERN},
  {(char *) "LOG_USER", (char *) "USER", LOG_USER},
  {(char *) "LOG_MAIL", (char *) "MAIL", LOG_MAIL},
  {(char *) "LOG_DAEMON", (char *) "DAEMON", LOG_DAEMON},
  {(char *) "LOG_AUTH", (char *) "AUTH", LOG_AUTH},
  {(char *) "LOG_LPR", (char *) "LPR", LOG_LPR},
  {(char *) "LOG_NEWS", (char *) "NEWS", LOG_NEWS},
  {(char *) "LOG_UUCP", (char *) "UUCP", LOG_UUCP},
  {(char *) "LOG_CRON", (char *) "CRON", LOG_CRON},
  {(char *) "LOG_LOCAL0", (char *) "LOCAL0", LOG_LOCAL0},
  {(char *) "LOG_LOCAL1", (char *) "LOCAL1", LOG_LOCAL1},
  {(char *) "LOG_LOCAL2", (char *) "LOCAL2", LOG_LOCAL2},
  {(char *) "LOG_LOCAL3", (char *) "LOCAL3", LOG_LOCAL3},
  {(char *) "LOG_LOCAL4", (char *) "LOCAL4", LOG_LOCAL4},
  {(char *) "LOG_LOCAL5", (char *) "LOCAL5", LOG_LOCAL5},
  {(char *) "LOG_LOCAL6", (char *) "LOCAL6", LOG_LOCAL6},
  {(char *) "LOG_LOCAL7", (char *) "LOCAL7", LOG_LOCAL7},
  {(char *) "INVALID_LOG_FAC", (char *) "INVALID", -1}
}

Definition at line 40 of file ink_syslog.cc.

const int convert_table_size = sizeof(convert_table) / sizeof(syslog_fac) - 1 [static]

Definition at line 60 of file ink_syslog.cc.

Referenced by facility_string_to_int().