diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2001-02-16 11:50:53 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2001-02-16 11:50:53 +0000 |
commit | d74a32164c230dd7dee582d8fc14b3b20246c62e (patch) | |
tree | ada1eda6c4afa4caec9d61c4d1603384a60f75a2 | |
parent | 4e1fcae306a4e984a5793bed8df8477359f3cbad (diff) | |
download | ATCD-d74a32164c230dd7dee582d8fc14b3b20246c62e.tar.gz |
ChangeLogTag:Fri Feb 16 05:37:47 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | ChangeLogs/ChangeLog-02a | 3 | ||||
-rw-r--r-- | ChangeLogs/ChangeLog-03a | 3 | ||||
-rw-r--r-- | ace/Logging_Strategy.h | 43 |
4 files changed, 42 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog index 136329de225..15d751aeec2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ Fri Feb 16 05:37:47 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu> + * ace/Logging_Strategy.h: Updated the documentation to explain what + the various options mean. + * tests/Log_Msg_Test.cpp (test_log_msg_features): Added ACE_Log_Msg::PROCESS to a coupld or priority_mask() calls to make the test work correctly. Thanks to Kitty for reporting diff --git a/ChangeLogs/ChangeLog-02a b/ChangeLogs/ChangeLog-02a index 136329de225..15d751aeec2 100644 --- a/ChangeLogs/ChangeLog-02a +++ b/ChangeLogs/ChangeLog-02a @@ -1,5 +1,8 @@ Fri Feb 16 05:37:47 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu> + * ace/Logging_Strategy.h: Updated the documentation to explain what + the various options mean. + * tests/Log_Msg_Test.cpp (test_log_msg_features): Added ACE_Log_Msg::PROCESS to a coupld or priority_mask() calls to make the test work correctly. Thanks to Kitty for reporting diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a index 136329de225..15d751aeec2 100644 --- a/ChangeLogs/ChangeLog-03a +++ b/ChangeLogs/ChangeLog-03a @@ -1,5 +1,8 @@ Fri Feb 16 05:37:47 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu> + * ace/Logging_Strategy.h: Updated the documentation to explain what + the various options mean. + * tests/Log_Msg_Test.cpp (test_log_msg_features): Added ACE_Log_Msg::PROCESS to a coupld or priority_mask() calls to make the test work correctly. Thanks to Kitty for reporting diff --git a/ace/Logging_Strategy.h b/ace/Logging_Strategy.h index 01fb4d8c8ae..b48e3103e4d 100644 --- a/ace/Logging_Strategy.h +++ b/ace/Logging_Strategy.h @@ -42,6 +42,20 @@ * by specifying the -i <sample_interval_in_secs> and -m * <max_size_in_KB> options for the Logging_Strategy class in a * svc.conf file. + * + * By default, two logfiles are generated. It's possible, however, to + * generate as many logfiles as necessary to store all the + * information. To achieve this, it is only necessary to indicate the + * maximum size of the logfiles via the -m option and the process will + * generate automatically the logfiles. You can control the total + * number of logfiles created via the -n option. + * + * By using the -o option we can also choose the mode of organization + * of the files, e.g., the first one is the normal used in Unix + * systems (when cron rotates the logs it keeps the lowest number the + * most recent one), the second is for increasing speed (we only + * create a new log file, and don't rotate the others (fewer accesses + * to disk)). */ class ACE_Export ACE_Logging_Strategy : public ACE_Service_Object { @@ -63,17 +77,26 @@ public: virtual int handle_timeout (const ACE_Time_Value& tv, const void* arg); /** Parse arguments provided in svc.conf file. - '-f' - '-i' - '-m' - '-n' The maximum number of log_files that we want created. - '-o' Specifies that we want the no standard log_files ordering + '-f' Pass in the flags (such as OSTREAM, STDERR, LOGGER, VERBOSE, + SILENT, VERBOSE_LITE) used to control logging. + '-i' The interval (in seconds) at which the logfile size is sampled + (default is 0, i.e., do not sample by default). + '-m' Maximum logfile size in Kbytes. + '-n' The maximum number of logfiles that we want created. + '-o' Specifies that we want the no standard logfiles ordering (fastest processing in <handle_timeout>). Default is not to order - log files. - '-p' - '-s' - '-t' - '-w' + logfiles. + '-p' Pass in the process-wide priorities to either enable (e.g., + DEBUG, INFO, WARNING, NOTICE, ERROR, CRITICAL, ALERT, + EMERGENCY) or to disable (e.g., ~DEBUG, ~INFO, ~WARNING, + ~NOTICE, ~ERROR, ~CRITICAL, ~ALERT, ~EMERGENCY). + '-s' Ensure that the OSTREAM flag is set + '-t' Pass in the thread-wide priorities to either enable (e.g., + DEBUG, INFO, WARNING, NOTICE, ERROR, CRITICAL, ALERT, + EMERGENCY) or to disable (e.g., ~DEBUG, ~INFO, ~WARNING, + ~NOTICE, ~ERROR, ~CRITICAL, ~ALERT, ~EMERGENCY). + '-w' Cause the logfile to be wiped out, both on startup and on + reconfiguration. */ int parse_args (int argc, ACE_TCHAR *argv[]); |