FARGOS/VISTA Object Management Environment Core
..
|
#include <utils/logging/logging_api.hpp>
#include <limits.h>
#include <unistd.h>
#include <sys/uio.h>
#include <errno.h>
#include <sys/mman.h>
#include <syslog.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <memory.h>
#include <utils/io/mapped_file.h>
#include <utils/shared_vars/shared_variable.hpp>
#include <utils/base/text2int.h>
#include <utils/base/atomic_values.h>
Macros | |
#define | INVALID_HANDLE_VALUE -1 |
#define | MAX_SUPPORTED_COMPONENTS 64 |
#define | MAX_DISTINCT_FLAG_ALIASES 128 |
#define | MAX_SEVERITY_LABEL_LEN 12 /* keep as small as possible to fit as much as possible within a cache line */ |
#define | LEVEL_BITS_AVAILABLE (30-4) |
#define | USER_LEVEL_SUBSCRIPT 7 |
#define | MAX_ELEMENT_TOTAL ((LOG_MAX_ARGUMENT_TOTAL * 2) + 9) |
Maximum possible iovec elements, usually leading text and the argument data. More... | |
#define | ADD_IOV_ELEMENT(ptr, len, testCount) |
Convenience macro to add element to iovec array. More... | |
Functions | |
LogManager realize_STDOUT_Manager & | stdoutName ("USE_STDOUT_THREAD"), "stdout", ~0U, getEnvironValue("STDOUT_MAX_LENGTH", 4608), nullptr, getEnvironValue("STDOUT_LINES", 64) *LogManager::MAX_LOG_LINE_LENGTH |
LogManager realize_STDERR_Manager & | stderrName ("USE_STDERR_THREAD"), "stderr", ~0U, getEnvironValue("STDERR_MAX_LENGTH", 4608), nullptr, getEnvironValue("STDERR_LINES", 64) *LogManager::MAX_LOG_LINE_LENGTH |
LogMaskType_t COMPONENT_LOG_MASK() | app ("app_logMask", &DEFAULT_sharedMemoryVariableManager, COMPONENT_LEVEL(app, defaultMask)) |
LogMaskType_t COMPONENT_LOG_MASK() | io ("io_logMask", &DEFAULT_sharedMemoryVariableManager, COMPONENT_LEVEL(io, warn)|COMPONENT_LEVEL(io, error)|COMPONENT_LEVEL(io, fatal)) |
Variables | |
struct LogSubsystemInfo | default_LogSubsystemInfo |
Default descriptive information for Logging subsystem. More... | |
SMV_StandaloneNumeric< uint32_t > | coalesceCount ("coalesceIOVEC") |
struct BitFlagAndName | logFlagBits [MAX_DISTINCT_FLAG_ALIASES] |
#define ADD_IOV_ELEMENT | ( | ptr, | |
len, | |||
testCount | |||
) |
Convenience macro to add element to iovec array.
ptr | points to the block of data |
len | specifies the length |
testCount | is a constant that indicates if the test for too many vector elements should be included. This is evaluated at compile time and can eliminate the test overhead completely. |
#define INVALID_HANDLE_VALUE -1 |
#define LEVEL_BITS_AVAILABLE (30-4) |
#define MAX_DISTINCT_FLAG_ALIASES 128 |
#define MAX_ELEMENT_TOTAL ((LOG_MAX_ARGUMENT_TOTAL * 2) + 9) |
Maximum possible iovec elements, usually leading text and the argument data.
#define MAX_SEVERITY_LABEL_LEN 12 /* keep as small as possible to fit as much as possible within a cache line */ |
#define MAX_SUPPORTED_COMPONENTS 64 |
#define USER_LEVEL_SUBSCRIPT 7 |
LogMaskType_t COMPONENT_LOG_MASK() app | ( | "app_logMask" | , |
& | DEFAULT_sharedMemoryVariableManager, | ||
COMPONENT_LEVEL(app, defaultMask) | |||
) |
Referenced by HTTPstatusLog::addHTTPsession(), Extract_And_Process_Document_Stream::addIOblockThenProcess(), FastLookupTable< RECORD_TYPE, MAX_LOOKAHEAD, SMALLEST_CHAR, LARGEST_CHAR, LT_KEY_COMPARE >::addRecord(), HTTP_SessionRecord::connectionEOF(), FastLookupTable< RECORD_TYPE, MAX_LOOKAHEAD, SMALLEST_CHAR, LARGEST_CHAR, LT_KEY_COMPARE >::findRecord(), HTTP_SessionRecord::handleHTTPrequest(), MetaDataLoaderForFormat< RECORD_CLASS >::loadMetaDataHeader(), logOutput(), HTTP_SessionRecord::processBlock(), ReadBinaryLog::processBuffer(), HTTP_SessionRecord::processHTTPheader(), and HTTPstatusLog::removeHTTPsession().
LogMaskType_t COMPONENT_LOG_MASK() io | ( | "io_logMask" | , |
& | DEFAULT_sharedMemoryVariableManager, | ||
COMPONENT_LEVEL(io, warn)|COMPONENT_LEVEL(io, error)|COMPONENT_LEVEL(io, fatal) | |||
) |
Referenced by acceptConnection(), HTTPembeddedServer< ACCEPT_CLASS, USER_CLASS >::acceptNewConnection(), OrderedMultipleInputFilter::addInputSource(), closeIO(), Read_And_Process_File::findFileInPathsWithSuffixes(), getErrorStatus(), getIOhandle(), getLocalAddress(), OrderedInputSourceProxyWithReordering::getNextInputBlock(), getPeerAddress(), HTTP_SessionRecord::HTTP_SessionRecord(), openURL(), OrderedInputSourceProxyWithReordering::OrderedInputSourceProxyWithReordering(), Parse_And_Process_HTTP_Stream::processDocument(), Parse_And_Process_HTTP_Stream::processHTTPheader(), Parse_And_Process_HTTP_Stream::processHTTPrequest(), Parse_And_Process_HTTP_Stream::processHTTPresponse(), OrderedMultipleInputFilter::processInputFiles(), OrderedMultipleInputFilter::processQueue(), readBytes(), receiveDatagram(), seekToOffset(), selectForRead(), selectForWrite(), sendDatagram(), writeBytes(), and writeVectorOfBytes().
LogManager realize_STDERR_Manager& stderrName | ( | "USE_STDERR_THREAD" | ) |
LogManager realize_STDOUT_Manager& stdoutName | ( | "USE_STDOUT_THREAD" | ) |
SMV_StandaloneNumeric<uint32_t> coalesceCount("coalesceIOVEC") |
struct BitFlagAndName logFlagBits[MAX_DISTINCT_FLAG_ALIASES] |
![]() | Generated: Tue Jul 28 2020 16:03:26
Support Information |