8#ifndef INCLUDED_BALL_ASYNCFILEOBSERVER
9#define INCLUDED_BALL_ASYNCFILEOBSERVER
565#include <balscm_version.h>
589#include <bsl_functional.h>
590#include <bsl_memory.h>
591#include <bsl_string.h>
690 void publishThreadEntryPoint();
750 bool publishInLocalTime,
754 bool publishInLocalTime,
755 int maxRecordQueueSize,
778 bool publishInLocalTime,
779 int maxRecordQueueSize,
930 const
bdlt::Datetime& startTime);
947 void setLogFormat(const
char *logFileFormat, const
char *stdoutFormat);
1005 const
char **stdoutFormat) const;
1017#ifdef BSLS_LIBRARYFEATURES_HAS_CPP17_PMR_STRING
1056#ifndef BDE_OMIT_INTERNAL_DEPRECATED
1175 const char *stdoutFormat)
1177 d_fileObserver.
setLogFormat(logFileFormat, stdoutFormat);
1202 const char **stdoutFormat)
const
1204 d_fileObserver.
getLogFormat(logFileFormat, stdoutFormat);
1225#ifdef BSLS_LIBRARYFEATURES_HAS_CPP17_PMR_STRING
1263#ifndef BDE_OMIT_INTERNAL_DEPRECATED
Definition ball_asyncfileobserver.h:622
int shutdownPublicationThread()
void suppressUniqueFileNameOnRotation(bool suppress)
Definition ball_asyncfileobserver.h:1194
bdlt::DatetimeInterval rotationLifetime() const
Definition ball_asyncfileobserver.h:1278
void releaseRecords() BSLS_KEYWORD_OVERRIDE
AsyncFileObserver(Severity::Level stdoutThreshold, bslma::Allocator *basicAllocator=0)
~AsyncFileObserver() BSLS_KEYWORD_OVERRIDE
void setOnFileRotationCallback(const OnFileRotationCallback &onRotationCallback)
Definition ball_asyncfileobserver.h:1181
bdlt::DatetimeInterval localTimeOffset() const
Definition ball_asyncfileobserver.h:1265
void enablePublishInLocalTime()
Definition ball_asyncfileobserver.h:1135
void setLogFormat(const char *logFileFormat, const char *stdoutFormat)
Definition ball_asyncfileobserver.h:1174
bool isPublicationThreadRunning() const
Definition ball_asyncfileobserver.h:1234
void disableTimeIntervalRotation()
Definition ball_asyncfileobserver.h:1123
void enableStdoutLoggingPrefix()
Definition ball_asyncfileobserver.h:1141
void forceRotation()
Definition ball_asyncfileobserver.h:1147
void disablePublishInLocalTime()
Definition ball_asyncfileobserver.h:1105
int startPublicationThread()
BSLMF_NESTED_TRAIT_DECLARATION(AsyncFileObserver, bslma::UsesBslmaAllocator)
Severity::Level stdoutThreshold() const
Definition ball_asyncfileobserver.h:1290
void disableStdoutLoggingPrefix()
Definition ball_asyncfileobserver.h:1117
bool isFileLoggingEnabled() const
Definition ball_asyncfileobserver.h:1208
int enableFileLogging(const char *logFilenamePattern)
Definition ball_asyncfileobserver.h:1129
void publish(const bsl::shared_ptr< const Record > &record, const Context &context) BSLS_KEYWORD_OVERRIDE
AsyncFileObserver(bslma::Allocator *basicAllocator=0)
bool isSuppressUniqueFileNameOnRotation() const
Definition ball_asyncfileobserver.h:1252
bool isPublishInLocalTimeEnabled() const
Definition ball_asyncfileobserver.h:1240
bsl::size_t recordQueueLength() const
Definition ball_asyncfileobserver.h:1272
bool isUserFieldsLoggingEnabled() const
Definition ball_asyncfileobserver.h:1258
FileObserver::OnFileRotationCallback OnFileRotationCallback
Definition ball_asyncfileobserver.h:706
int rotationSize() const
Definition ball_asyncfileobserver.h:1284
void rotateOnTimeInterval(const bdlt::DatetimeInterval &interval)
Definition ball_asyncfileobserver.h:1159
AsyncFileObserver(Severity::Level stdoutThreshold, bool publishInLocalTime, int maxRecordQueueSize, Severity::Level dropRecordsOnFullQueueThreshold, bslma::Allocator *basicAllocator=0)
AsyncFileObserver(Severity::Level stdoutThreshold, bool publishInLocalTime, bslma::Allocator *basicAllocator=0)
void disableSizeRotation()
Definition ball_asyncfileobserver.h:1111
void setStdoutThreshold(Severity::Level stdoutThreshold)
Definition ball_asyncfileobserver.h:1188
void rotateOnSize(int size)
Definition ball_asyncfileobserver.h:1153
AsyncFileObserver(Severity::Level stdoutThreshold, bool publishInLocalTime, int maxRecordQueueSize, bslma::Allocator *basicAllocator=0)
int stopPublicationThread()
bool isStdoutLoggingPrefixEnabled() const
Definition ball_asyncfileobserver.h:1246
void disableFileLogging()
Definition ball_asyncfileobserver.h:1099
void getLogFormat(const char **logFileFormat, const char **stdoutFormat) const
Definition ball_asyncfileobserver.h:1201
Definition ball_context.h:295
Definition ball_fileobserver.h:515
int enableFileLogging(const char *logFilenamePattern)
Definition ball_fileobserver.h:944
void getLogFormat(const char **logFileFormat, const char **stdoutFormat) const
bool isSuppressUniqueFileNameOnRotation() const
Definition ball_fileobserver.h:1042
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 disableStdoutLoggingPrefix()
void rotateOnSize(int size)
Definition ball_fileobserver.h:982
bool isUserFieldsLoggingEnabled() const
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
void suppressUniqueFileNameOnRotation(bool suppress)
Definition ball_fileobserver.h:1009
void setLogFormat(const char *logFileFormat, const char *stdoutFormat)
void forceRotation()
Definition ball_fileobserver.h:958
void disableFileLogging()
Definition ball_fileobserver.h:920
void enableStdoutLoggingPrefix()
int rotationSize() const
Definition ball_fileobserver.h:1060
Severity::Level stdoutThreshold() const
Definition ball_observer.h:235
Definition ball_record.h:178
Definition bdlcc_boundedqueue.h:415
bsl::size_t numElements() const
Definition bdlcc_boundedqueue.h:1416
Definition bdlt_datetimeinterval.h:201
Definition bdlt_datetime.h:331
Definition bslstl_string.h:1281
Forward declaration.
Definition bslstl_function.h:934
Definition bslstl_sharedptr.h:1830
Definition bslma_allocator.h:457
Definition bslmt_mutex.h:315
Definition bsls_atomic.h:743
#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 bdldfp_decimal.h:5188
Definition ball_asyncfileobserver.h:604
Context d_context
Definition ball_asyncfileobserver.h:608
bsl::shared_ptr< const Record > d_record
Definition ball_asyncfileobserver.h:607
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
Imp::Handle Handle
Definition bslmt_threadutil.h:385
static const Handle & invalidHandle()
Definition bslmt_threadutil.h:1057