Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-24-2007
Edward Bishop Edward Bishop is offline
Registered User
 
Name: Edward
Organization: Sony
Project: Automated Test
 
Join Date: Oct 2005
Location: San Diego
Posts: 31
Another Logger usage question

As a followup to my previous queston, what is the difference between these two methods of logging?
Code:
   if(_traceLevel > 0)
   {
      Ice::Trace trace("FooI", _logger);
      trace << "dosomething";
   }
and
Code:
   if(_traceLevel > 0)
   {
      _logger->trace("FooI", "dosomething");
   }
Thanks,
__________________
Edward
Reply With Quote
  #2 (permalink)  
Old 07-24-2007
michi's Avatar
michi michi is offline
ZeroC Staff
 
Name: Michi Henning
Organization: ZeroC
Project: Ice
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 907
They do exactly the same thing. Both print something like:

[ 07/25/07 11:11:44.312 FooI: dosomething ]

operator<< is provided simply as a convenience function.

Cheers,

Michi.
Reply With Quote
  #3 (permalink)  
Old 07-25-2007
Edward Bishop Edward Bishop is offline
Registered User
 
Name: Edward
Organization: Sony
Project: Automated Test
 
Join Date: Oct 2005
Location: San Diego
Posts: 31
Thanks Michi,
__________________
Edward
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Logger usage? vincei Comments 9 07-12-2007 09:07 AM
IceGridRegistry: Configuration and usage MikeGerdes Help Center 2 03-07-2007 07:08 AM
Help about one usage of AMD rc_hz Help Center 1 09-30-2006 12:19 AM
slice2cpp - DLL usage timp Help Center 2 01-12-2006 01:03 PM
IceBoxService and Logger xdm Help Center 2 01-11-2006 07:34 AM


All times are GMT -4. The time now is 11:30 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.