8#ifndef INCLUDED_BALL_FILEOBSERVER
9#define INCLUDED_BALL_FILEOBSERVER
473#include <balscm_version.h>
492#include <bsl_memory.h>
493#include <bsl_string.h>
527 bool d_useRegularFormatOnStdoutFlag;
533 bool d_publishInLocalTime;
537 bool d_userFieldsLoggingFlag;
610 bool publishInLocalTime,
704 bool appendTimestampFlag);
790 const
bdlt::Datetime& startTime);
820 void setLogFormat(const
char *logFileFormat, const
char *stdoutFormat);
838 const
char **stdoutFormat) const;
850#ifdef BSLS_LIBRARYFEATURES_HAS_CPP17_PMR_STRING
951 bool appendTimestampFlag)
954 appendTimestampFlag);
1033#ifdef BSLS_LIBRARYFEATURES_HAS_CPP17_PMR_STRING
Definition ball_context.h:295
Definition ball_fileobserver2.h:449
void rotateOnSize(int size)
void rotateOnTimeInterval(const bdlt::DatetimeInterval &interval)
bool isSuppressUniqueFileNameOnRotation() const
bdlt::DatetimeInterval rotationLifetime() const
bdlt::DatetimeInterval localTimeOffset() const
bool isFileLoggingEnabled() const
void disableTimeIntervalRotation()
void disableFileLogging()
void setOnFileRotationCallback(const OnFileRotationCallback &onRotationCallback)
int enableFileLogging(const char *logFilenamePattern)
void disableSizeRotation()
void suppressUniqueFileNameOnRotation(bool suppress)
Definition ball_fileobserver.h:515
FileObserver(Severity::Level stdoutThreshold, bool publishInLocalTime, bslma::Allocator *basicAllocator=0)
int enableFileLogging(const char *logFilenamePattern)
Definition ball_fileobserver.h:944
bslma::Allocator * allocator() const
Return the memory allocator used by this object.
void getLogFormat(const char **logFileFormat, const char **stdoutFormat) const
bool isSuppressUniqueFileNameOnRotation() const
Definition ball_fileobserver.h:1042
void rotateOnLifetime(const bdlt::DatetimeInterval &timeInterval)
Definition ball_fileobserver.h:976
void releaseRecords() BSLS_KEYWORD_OVERRIDE
Definition ball_fileobserver.h:971
bdlt::DatetimeInterval rotationLifetime() const
Definition ball_fileobserver.h:1054
bool isFileLoggingEnabled() const
Definition ball_fileobserver.h:1016
void disablePublishInLocalTime()
bool isStdoutLoggingPrefixEnabled() const
void disableSizeRotation()
Definition ball_fileobserver.h:932
void enablePublishInLocalTime()
void disableLifetimeRotation()
Definition ball_fileobserver.h:926
void disableStdoutLoggingPrefix()
void rotateOnSize(int size)
Definition ball_fileobserver.h:982
bool isUserFieldsLoggingEnabled() const
BSLMF_NESTED_TRAIT_DECLARATION(FileObserver, bslma::UsesBslmaAllocator)
void setStdoutThreshold(Severity::Level stdoutThreshold)
void setOnFileRotationCallback(const OnFileRotationCallback &onRotationCallback)
Definition ball_fileobserver.h:1002
bdlt::DatetimeInterval localTimeOffset() const
Definition ball_fileobserver.h:1048
bool isPublishInLocalTimeEnabled() const
void rotateOnTimeInterval(const bdlt::DatetimeInterval &interval)
Definition ball_fileobserver.h:988
void disableTimeIntervalRotation()
Definition ball_fileobserver.h:938
FileObserver2::OnFileRotationCallback OnFileRotationCallback
Definition ball_fileobserver.h:574
void disableUserFieldsLogging()
void suppressUniqueFileNameOnRotation(bool suppress)
Definition ball_fileobserver.h:1009
void setLogFormat(const char *logFileFormat, const char *stdoutFormat)
void forceRotation()
Definition ball_fileobserver.h:958
FileObserver(Severity::Level stdoutThreshold, bslma::Allocator *basicAllocator=0)
void disableFileLogging()
Definition ball_fileobserver.h:920
void enableStdoutLoggingPrefix()
int rotationSize() const
Definition ball_fileobserver.h:1060
void enableUserFieldsLogging()
FileObserver(bslma::Allocator *basicAllocator)
Severity::Level stdoutThreshold() const
~FileObserver() BSLS_KEYWORD_OVERRIDE
void publish(const Record &record, const Context &context) BSLS_KEYWORD_OVERRIDE
Definition ball_observer.h:235
Definition ball_record.h:178
Definition bdlt_datetimeinterval.h:201
Definition bdlt_datetime.h:331
Definition bslstl_string.h:1281
Definition bslstl_sharedptr.h:1830
Definition bslma_allocator.h:457
Definition bslmt_mutex.h:315
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
#define BSLS_KEYWORD_OVERRIDE
Definition bsls_keyword.h:653
Definition ball_administration.h:214
Definition bbldc_basicisma30360.h:112
Definition bdlb_printmethods.h:283
Definition balxml_encoderoptions.h:68
Definition bdldfp_decimal.h:5188
This struct provides a namespace for enumerating severity levels.
Definition ball_severity.h:164
Level
Definition ball_severity.h:167
Definition bslma_usesbslmaallocator.h:343