summaryrefslogtreecommitdiff
path: root/ace/Log_Msg.h
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>2001-04-19 20:24:35 +0000
committerSteve Huston <shuston@riverace.com>2001-04-19 20:24:35 +0000
commitfc7dae69fc33c60b6826c6e07addce78f025df76 (patch)
tree4279e245f117492aef6f73170c718917078b659e /ace/Log_Msg.h
parent30a5cf82a25a2acffc0350fba89b2f3bfd349b30 (diff)
downloadATCD-fc7dae69fc33c60b6826c6e07addce78f025df76.tar.gz
ChangeLogTag:Thu Apr 19 16:18:33 2001 Steve Huston <shuston@riverace.com>
Diffstat (limited to 'ace/Log_Msg.h')
-rw-r--r--ace/Log_Msg.h36
1 files changed, 24 insertions, 12 deletions
diff --git a/ace/Log_Msg.h b/ace/Log_Msg.h
index 66a4f1c05f9..fd6c3e81693 100644
--- a/ace/Log_Msg.h
+++ b/ace/Log_Msg.h
@@ -194,13 +194,20 @@ public:
/// cleanup logger.
~ACE_Log_Msg (void);
+ /// Initialize the ACE logging facility.
/**
- * Initialize the ACE error handling facility. <prog_name> is the
- * name of the executable program. <flags> are a bitwise-or of
- * options flags passed to the Logger (see the enum above for the valid
- * values). If the <LOGGER> bit in <flags> is enabled then
- * <logger_key> is the name of ACE_FIFO rendezvous point where the
- * local client logger daemon is listening for logging messages.
+ * Initialize the ACE logging facility. Supplies the program name
+ * that is available to each logging message call. Default arguments
+ * set up logging to STDERR only.
+ *
+ * @param prog_name The name of the calling program.
+ * @param flags A bitwise-or of options flags used to set the
+ * initial behavior and logging sink(s). (see the
+ * enum above for the valid values).
+ * @param logger_key The name of ACE_FIFO rendezvous point where the
+ * local client logger daemon is listening for logging
+ * messages. Only meaningful if the LOGGER bit is
+ * set in the <flags> argument.
*/
int open (const ACE_TCHAR *prog_name,
u_long options_flags = ACE_Log_Msg::STDERR,
@@ -406,24 +413,29 @@ public:
/**
* Format a message to the thread-safe ACE logging mechanism. Valid
* options (prefixed by '%', as in printf format strings) include:
- * + 'A': print an ACE_timer_t value (which could be either double or ACE_UINT32.)
+ * + 'A': print an ACE_timer_t value (which could be either double
+ * or ACE_UINT32.)
* + 'a': abort the program at this point abruptly.
* + 'c': print a character
* + 'C': print a character string
* + 'i', 'd': print a decimal number
- * + 'I', indent according to nesting depth (obtained from <ACE_Trace::get_nesting_indent>).
+ * + 'I': indent according to nesting depth (obtained from
+ * <ACE_Trace::get_nesting_indent>).
* + 'e', 'E', 'f', 'F', 'g', 'G': print a double
- * + 'l', print line number where an error occurred.
- * + 'm': Return the message corresponding to errno value, e.g., as done by strerror()
+ * + 'l': print line number where an error occurred.
+ * + 'm': return the message corresponding to errno value, e.g., as
+ * done by strerror()
* + 'N': print file name where the error occurred.
* + 'n': print the name of the program (or "<unknown>" if not set)
* + 'o': print as an octal number
* + 'P': print out the current process id
- * + 'p': print out the appropriate errno message from sys_errlist, e.g., as done by perror()
+ * + 'p': print out the appropriate errno message from sys_errlist,
+ * e.g., as done by perror()
* + 'Q': print out the uint64 number
* + 'r': call the function pointed to by the corresponding argument
* + 'R': print return status
- * + 'S': print out the appropriate _sys_siglist entry corresponding to var-argument.
+ * + 'S': print out the appropriate _sys_siglist entry corresponding
+ * to var-argument.
* + 's': print out a character string
* + 'T': print timestamp in hour:minute:sec:usec format.
* + 'D': print timestamp in month/day/year hour:minute:sec:usec format.