diff options
Diffstat (limited to 'ace/Logging_Strategy.h')
-rw-r--r-- | ace/Logging_Strategy.h | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/ace/Logging_Strategy.h b/ace/Logging_Strategy.h index 443e88915ec..f93a8a3e364 100644 --- a/ace/Logging_Strategy.h +++ b/ace/Logging_Strategy.h @@ -93,13 +93,29 @@ public: /** * Timeout handler which tests logfile size. If the current logfile - * size exceeds <max_size_>, the current logfile is closed, saved to + * size exceeds @c max_size_, the current logfile is closed, saved to * logfile.old, and a new logfile is reopened. */ virtual int handle_timeout (const ACE_Time_Value& tv, const void* arg); /** + * This function helps to cancel timer events for this logging strategy + * in reactor during shutdown. + */ + virtual int handle_close (ACE_HANDLE, + ACE_Reactor_Mask); + + /** + * Reactor accessors. If reactor changes then we need remove this + * event handler from previous reactor and scheduler for timer events + * in a new one. + */ + virtual void reactor (ACE_Reactor *r); + + virtual ACE_Reactor * reactor (void) const; + + /** * Parse arguments provided in svc.conf file. * @arg '-f' Pass in the flags (such as OSTREAM, STDERR, LOGGER, VERBOSE, * SILENT, VERBOSE_LITE) used to control logging. @@ -110,7 +126,7 @@ public: * @arg '-n' Set the program name for the %n format specifier. * @arg '-N' The maximum number of logfiles that we want created. * @arg '-o' Specifies that we want the no standard logfiles ordering - * (fastest processing in <handle_timeout>). Default is not to + * (fastest processing in handle_timeout()). Default is not to * order logfiles. * @arg '-p' Pass in the process-wide priorities to either enable (e.g., * DEBUG, INFO, WARNING, NOTICE, ERROR, CRITICAL, ALERT, @@ -136,10 +152,10 @@ protected: void priorities (ACE_TCHAR *priority_string, ACE_Log_Msg::MASK_TYPE mask); - /// Current thread's priority mask set by <priorities> + /// Current thread's priority mask set by @c priorities u_long thread_priority_mask_; - /// Process-wide priority mask set by <priorities> + /// Process-wide priority mask set by @c priorities u_long process_priority_mask_; /// Flags we keep track of. @@ -171,7 +187,7 @@ protected: int count_; /// Tells us what is the maximum log file to write. We will write - /// <max_file_number_> + 1 files (includes the current log file). + /// @c max_file_number_ + 1 files (includes the current log file). /// Default value is 1, i.e., 2 files by default. int max_file_number_; @@ -181,7 +197,7 @@ protected: u_long interval_; /// Maximum logfile size (in KB). Default value is - /// <ACE_DEFAULT_MAX_LOGFILE_SIZE>. + /// ACE_DEFAULT_MAX_LOGFILE_SIZE. u_long max_size_; /// ACE_Log_Msg instance to work with @@ -190,6 +206,8 @@ protected: ACE_END_VERSIONED_NAMESPACE_DECL +ACE_STATIC_SVC_DECLARE_EXPORT(ACE, ACE_Logging_Strategy) + ACE_FACTORY_DECLARE (ACE, ACE_Logging_Strategy) #endif /* ACE_LOGGING_STRATEGY_H */ |