Defines | Functions | Variables

LogConfig.cc File Reference

This file implements the LogConfig object. More...

#include "libts.h"
#include "I_Layout.h"
#include <sys/param.h>
#include "ink_platform.h"
#include "ink_file.h"
#include "Main.h"
#include "List.h"
#include "InkXml.h"
#include "Log.h"
#include "LogField.h"
#include "LogFilter.h"
#include "LogFormat.h"
#include "LogFile.h"
#include "LogBuffer.h"
#include "LogHost.h"
#include "LogObject.h"
#include "LogConfig.h"
#include "LogUtils.h"
#include "SimpleTokenizer.h"
#include "LogCollationAccept.h"
#include "LogPredefined.h"
Include dependency graph for LogConfig.cc:

Go to the source code of this file.

Defines

#define DISK_IS_CONFIG_FULL_MESSAGE
#define DISK_IS_ACTUAL_FULL_MESSAGE
#define DISK_IS_CONFIG_LOW_MESSAGE
#define DISK_IS_ACTUAL_LOW_MESSAGE   "Access logging to local log directory suspended - partition space is low."
#define DUP_FORMAT_MESSAGE   "Format named %s already exists; duplicate format names are not allowed."
#define PARTITION_HEADROOM_MB   10

Functions

static int delete_candidate_compare (const LogDeleteCandidate *a, const LogDeleteCandidate *b)

Variables

static char xml_config_buffer []

Detailed Description

This file implements the LogConfig object.

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 LogConfig.cc.


Define Documentation

#define DISK_IS_ACTUAL_FULL_MESSAGE
Value:
"Access logging to local log directory suspended - " \
    "no more space on the logging partition."

Definition at line 56 of file LogConfig.cc.

Referenced by LogConfig::update_space_used().

#define DISK_IS_ACTUAL_LOW_MESSAGE   "Access logging to local log directory suspended - partition space is low."

Definition at line 62 of file LogConfig.cc.

Referenced by LogConfig::update_space_used().

#define DISK_IS_CONFIG_FULL_MESSAGE
Value:
"Access logging to local log directory suspended - " \
    "configured space allocation exhausted."

Definition at line 53 of file LogConfig.cc.

Referenced by LogConfig::update_space_used().

#define DISK_IS_CONFIG_LOW_MESSAGE
Value:
"Access logging to local log directory suspended - " \
    "configured space allocation almost exhausted."

Definition at line 59 of file LogConfig.cc.

Referenced by LogConfig::update_space_used().

#define DUP_FORMAT_MESSAGE   "Format named %s already exists; duplicate format names are not allowed."

Definition at line 64 of file LogConfig.cc.

#define PARTITION_HEADROOM_MB   10

Definition at line 67 of file LogConfig.cc.

Referenced by LogConfig::space_to_write().


Function Documentation

static int delete_candidate_compare ( const LogDeleteCandidate a,
const LogDeleteCandidate b 
) [static]

Definition at line 1331 of file LogConfig.cc.

References LogDeleteCandidate::mtime.

Referenced by LogConfig::update_space_used().


Variable Documentation

char xml_config_buffer[] [static]

Definition at line 1575 of file LogConfig.cc.