diff options
author | mjb2 <mjb2@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-03-08 23:01:43 +0000 |
---|---|---|
committer | mjb2 <mjb2@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-03-08 23:01:43 +0000 |
commit | af5938785fe65db40113cd6c37ea550b3a9e480c (patch) | |
tree | 2915c880d0f76d78d136c84cb6179a9eb95e985a | |
parent | 9df368e99996c413ccdc66275c05de11b1730448 (diff) | |
download | ATCD-af5938785fe65db40113cd6c37ea550b3a9e480c.tar.gz |
See Mon Mar 8 16:46:36 1999 Matthew J Braun <mjb2@cs.wustl.edu>
-rw-r--r-- | TAO/ChangeLog-99c | 13 | ||||
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Log/Logger_i.cpp | 9 | ||||
-rw-r--r-- | TAO/orbsvcs/tests/Logger/README | 9 |
3 files changed, 21 insertions, 10 deletions
diff --git a/TAO/ChangeLog-99c b/TAO/ChangeLog-99c index 20c6afcf2dc..56b29b99182 100644 --- a/TAO/ChangeLog-99c +++ b/TAO/ChangeLog-99c @@ -1,3 +1,16 @@ +Mon Mar 8 16:46:36 1999 Matthew J Braun <mjb2@cs.wustl.edu> + + * orbsvcs/tests/Logger/README: + Changed description of correct test output to reflect change + from get_host_by_name () to get_host_by_addr (). + + * orbsvcs/orbsvcs/Log/Logger_i.cpp: + Altered the return values in verbosity_conversion to correspond + to the changed values in ace/Log_Msg.h. Also modified logv to + use get_host_by_addr () rather than get_host_by_name (). This + speeds things up somewhat. Thanks to Ulf Jährig for pointing + this out. + Mon Mar 8 14:27:38 1999 Jeff Parsons <parsons@cs.wustl.edu> * tao/Invocation.cpp: diff --git a/TAO/orbsvcs/orbsvcs/Log/Logger_i.cpp b/TAO/orbsvcs/orbsvcs/Log/Logger_i.cpp index 6149c041bd3..e70456e1c56 100644 --- a/TAO/orbsvcs/orbsvcs/Log/Logger_i.cpp +++ b/TAO/orbsvcs/orbsvcs/Log/Logger_i.cpp @@ -109,12 +109,12 @@ Logger_i::verbosity_conversion (Logger::Verbosity_Level verbosity_level) switch (verbosity_level) { case Logger::SILENT: - return 040; + return 64; case Logger::VERBOSE_LITE: - return 020; + return 32; default: case Logger::VERBOSE: - return 010; + return 16; } } @@ -178,9 +178,8 @@ Logger_i::logv (const Logger::Log_Record &log_rec, // Create a buffer and fill it with the host name of the logger ASYS_TCHAR namebuf[MAXHOSTNAMELEN + 1]; - addy.get_host_name (namebuf, - MAXHOSTNAMELEN); + ACE_OS::strncpy (namebuf, addy.get_host_addr (), MAXHOSTNAMELEN); u_long verb_level = this->verbosity_conversion (verbosity); diff --git a/TAO/orbsvcs/tests/Logger/README b/TAO/orbsvcs/tests/Logger/README index 430e9d3442d..64a11da2ede 100644 --- a/TAO/orbsvcs/tests/Logger/README +++ b/TAO/orbsvcs/tests/Logger/README @@ -14,13 +14,12 @@ server. The test demonstrates the functionality of the logging service. The client program will generate 4 logging messages which will be logged to the screen. The first message will be in the "verbose_lite" -format. The rest will be fully verbose messages. Successful output is +format. The rest will be fully verbose messages. Successful output is: LM_DEBUG@::log() test (1) -Nov 12 14:20:02.0 1998@lambada-hme0@13670@LM_EMERGENCY@::log() test (2) -Nov 12 14:20:02.0 1998@lambada-hme0@13670@LM_INFO@::logv() test (3) -Nov 12 14:20:02.0 1998@lambada-hme0@13670@LM_EMERGENCY@::log2() test (4) - +Mar 8 16:31:06.000 1999@128.252.165.142@822@LM_EMERGENCY@::log() test (2) +Mar 8 16:31:06.000 1999@128.252.165.142@822@LM_INFO@::logv() test (3) +Mar 8 16:31:06.000 1999@128.252.165.142@822@LM_EMERGENCY@::log2() test (4) server: ------ |