log4shib::PatternLayout(3)
π NAME π
okay so bestie, this is the log4shib::PatternLayout(3) page from the log4shib manual β and the whole vibe is: log4shib::PatternLayout β PatternLayout is a simple fixed format Layout implementation. Slay, honestly.
β¨ SYNOPSIS β¨
#include <PatternLayout.hh>
Inherits log4shib::Layout.
π¦ Classes π¦
class PatternComponent
π Public Member Functions π
PatternLayout ()virtual ~PatternLayout ()virtual std::string format (const LoggingEvent &event)β Formats the LoggingEvent in the style set by thesetConversionPatterncall.virtual void setConversionPattern (const std::string &conversionPattern)β Sets the format of log lines handled by this PatternLayout.virtual std::string getConversionPattern () constvirtual void clearConversionPattern ()
π Public Member Functions inherited from log4shib::Layout π
virtual ~Layout ()β Destructor forLayout.
β Static Public Attributes β
static const char * DEFAULT_CONVERSION_PATTERN = '%m%n'β The default conversion pattern.static const char * SIMPLE_CONVERSION_PATTERN = '%p - %m%n'β A conversion pattern equivalent to theSimpleLayout.static const char * BASIC_CONVERSION_PATTERN = '%R %p %c %x: %m%n'β A conversion pattern equivalent to theBasicLayout.static const char * TTCC_CONVERSION_PATTERN = '%r [%t] %p %c %x - %m%n'β A conversion pattern equivalent to theTTCCLayout.
π Detailed Description π
okay so <pink>PatternLayout</pink> is a simple fixed format Layout implementation. That's the whole main-character description, no cap. π
π Constructor & Destructor Documentation π
π§Έ log4shib::PatternLayout::PatternLayout () π§Έ
π§Έ log4shib::PatternLayout::~PatternLayout () [virtual] π§Έ
literally just the constructor and destructor signatures here β no extra lore in the page, bestie. β¨
π¦ Member Function Documentation π¦
π« void log4shib::PatternLayout::clearConversionPattern () [virtual] π«
Again, no extra description in the original β just the signature. π«Ά
π std::string log4shib::PatternLayout::format (const LoggingEvent & event) [virtual] π
Formats the LoggingEvent in the style set by the setConversionPattern call. By default, set to "%m%n".
Implements log4shib::Layout.
πΈ std::string log4shib::PatternLayout::getConversionPattern () const [virtual] πΈ
signature only, bestie. π
π₯ void log4shib::PatternLayout::setConversionPattern (const std::string & conversionPattern) [virtual] π₯
Sets the format of log lines handled by this PatternLayout. By default, set to "%m%n". Format characters are as follows:
%%β a single percent sign%cβ the category%dβ the date Date format: The date format character may be followed by a date format specifier enclosed between braces. For example,%d{%H:%M:%S,%l}or%d{%d %m %Y %H:%M:%S,%l}. If no date format specifier is given then the following format is used:"Wed Jan 02 02:03:55 1980". The date format specifier admits the same syntax as the ANSI C functionstrftime, with 1 addition. The addition is the specifier%lfor milliseconds, padded with zeros to make 3 digits.%mβ the message%nβ the platform specific line separator%pβ the priority%rβ milliseconds since this layout was created%Rβ seconds since Jan 1, 1970%uβ clock ticks since process start%xβ the NDC
Parameters
conversionPatternβ the conversion pattern
Exceptions
ConfigureFailureβ if the pattern is invalid
π Member Data Documentation π
const char * log4shib::PatternLayout::BASIC_CONVERSION_PATTERN = '%R %p %c %x: %m%n'[static]β A conversion pattern equivalent to theBasicLayout.const char * log4shib::PatternLayout::DEFAULT_CONVERSION_PATTERN = '%m%n'[static]β The default conversion pattern.const char * log4shib::PatternLayout::SIMPLE_CONVERSION_PATTERN = '%p - %m%n'[static]β A conversion pattern equivalent to theSimpleLayout.const char * log4shib::PatternLayout::TTCC_CONVERSION_PATTERN = '%r [%t] %p %c %x - %m%n'[static]β A conversion pattern equivalent to theTTCCLayout.
π¦ Note:TTCCLayoutis inlog4jbut notlog4shib.
π AUTHOR π
Generated automatically by Doxygen for log4shib from the source code.
byeeee bestie π β source/version: log4shib, Version 2.0.1; date: the footer doesn't list one, so I'm not inventing it, fr fr. β¨ππ«Ά
π¦ where this page comes from
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- opensuse-leap 16.0: liblog4shib-devel 2.0.1-160000.3.2 Β· LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms