[tao-users] How to properly redirect all debugs to single file and implement some rolling up mechanism?

Tomek tomek.w.gran.chaco at gmail.com
Thu Mar 3 08:09:39 CST 2016


Hi Phil,

Thanks for Your response, I learned a lot from examples provided with the
software stack.
However I have still one question:
Is it possible to disable logging to syslog from the tao_cosnotification
service?
My configuration looks as follows:

/SA/tao/bin/tao_cosnotification -NoNameSvc -IORoutput
/SA/data/fp1/ca/tmp/ntfy.ior -ORBDottedDecimalAddresses 1
-ORBListenEndpoints iiop://:20001 -ORBDebugLevel 10 -ORBVerboseLogging 2
-ORBSvcConf /SA/data/fp1/ca/config/ntfysvc.conf -LoggingInterval 5  >
/SA/data/traces/ca/tao_cosnotification.out.$$ 2>&1

 cat /SA/data/fp1/ca/config/ntfysvc.conf
dynamic Logging_Strategy Service_Object * ACE:_make_ACE_Logging_Strategy()
"-s /SA/data/traces/ca/tao_cosnotification.trace -f OSTREAM -t 0 -m 5000 -N
5"



The trace file contains all entries which is OK, but the System log
contains entries of level LM_INFO and LM_ERROR


Thanks and Regards
Tomek

2016-02-29 16:03 GMT+01:00 Phil Mesnier <mesnierp at ociweb.com>:

> Hi Tomek,
>
> Check out the README file in $TAO_ROOT/orbsvcs/Notify_Service. Logging
> variations, including log rotation are described, with examples.
>
> I also suggest you look under $ACE_ROOT/examples for extensive examples on
> how to use the ACE_Logging_Strategy service object.
>
> Best regards,
> Phil
>
> On Feb 29, 2016, at 6:35 AM, Tomek <tomek.w.gran.chaco at gmail.com> wrote:
>
> TAO version 2.3.1
> ACE version 6.3.1
>
> Red Hat Enterprise Linux 7.6.1-80.el7
>
> I am running the tao_cosnotification with the following options:
>
>  tao_cosnotification -NoNameSvc -IORoutput <iorfile>
> -ORBDottedDecimalAddresses 1 -ORBListenEndpoints iiop://:20001
> -ORBDebugLevel 10 -ORBVerboseLogging 2  > outfile.$$ 2>&1
>
>  The svc.conf file is not involved.
>
> The result is that writing to the outfile stops after creating new ORB:
> TAO (2515|4137703168) - Did not find default svc.conf
> TAO (2515|4137703168) - Completed initializing the process-wide service
> context
> TAO (2515|4137703168) - Default ORB services initialization begins
> TAO (2515|4137703168) - ORBInitializer_Registry::register_orb_initializer
> 0 @0x9657f38
> TAO (2515|4137703168) - ORBInitializer_Registry::register_orb_initializer
> 1 @0x96569c0
> TAO (2515|4137703168) - Default ORB services initialization completed
> TAO (2515|4137703168) - We are the default ORB ...
> TAO (2515|4137703168) - Initializing the orb-specific services
> TAO (2515|4137703168) - Setting primary connection timeout hook
> 2016-02-25 15:13:26.495@<local_host>@2515 at LM_INFO@/SA/tao/bin/tao_cosnotification|TAO
> (2515|4137703168) - TAO_Time_Policy_Manager: loaded time policy strategy
> 'TAO_SYSTEM_TIME_POLICY'
> 2016-02-25 15:13:26.497@<local_host>@2515 at LM_DEBUG@/SA/tao/bin/tao_cosnotification|TAO
> (2515|4137703168) - Default_Resource_Factory - codeset manager=0x9658d98
> 2016-02-25 15:13:26.498@<local_host>@2515 at LM_DEBUG@/SA/tao/bin/tao_cosnotification|TAO
> (2515|4137703168) - Codeset_Manager_i::init_ccs, Loaded Codeset translator
> <UTF8_Latin1_Factory>, ncs = 00010001 tcs = 05010001
> 2016-02-25 15:13:26.498@<local_host>@2515 at LM_DEBUG@/SA/tao/bin/tao_cosnotification|TAO
> (2515|4137703168) - UTF16_BOM_Translator: forceBE 0
> 2016-02-25 15:13:26.498@<local_host>@2515 at LM_DEBUG@/SA/tao/bin/tao_cosnotification|TAO
> (2515|4137703168) - Loaded default protocol <IIOP_Factory>
> 2016-02-25 15:13:26.498@<local_host>@2515 at LM_DEBUG@/SA/tao/bin/tao_cosnotification|TAO
> (2515|4137703168) - Created new ORB <>
>
> And there are also debug messages written to the syslog:
>
> Feb 29 12:09:21 isalnx35 journal: TAO Notify[2515]: 2016-02-29
> 12:09:21.902528: LM_ERROR: tao_cosnotification|TAO (2515|4137630528) -
> Transport[11]::handle_input, error parsing incoming message
> Feb 29 12:09:22 isalnx35 journal: TAO Notify[2515]: 2016-02-29
> 12:09:22.718390: LM_INFO: tao_cosnotification|TAO (2515|4137630528) -
> Transport_Cache_Manager_T::purge, Cache size after purging is [3]
> Feb 29 12:09:22 isalnx35 journal: TAO Notify[2515]: 2016-02-29
> 12:09:22.719601: LM_INFO: tao_cosnotification|TAO (2515|4137630528) -
> Transport_Cache_Manager_T::bind_i, Transport[11] @ hash:index{-2015532578:0}
> Feb 29 12:09:22 isalnx35 journal: TAO Notify[2515]: 2016-02-29
> 12:09:22.722561: LM_INFO: tao_cosnotification|TAO (2515|4137630528) -
> Transport_Cache_Manager_T::bind_i: Success Transport[11] @
> hash:index{-2015532578:0}. Cache size is [4]
>
>
> I would like to ask how to have all debugs and traces written to the
> single file (outfile)? Additionally I would like to have some rolling up
> mechanism implemented - does TAO provides such functionality?
>
> Thanks and regards,
> Tomek
> _______________________________________________
> tao-users mailing list
> tao-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/cgi-bin/mailman/listinfo/tao-users
>
>
> --
> Phil Mesnier
> Principal Engineer & Partner
>
> OCI | WE ARE SOFTWARE ENGINEERS.
> tel  +1.314.579.0066 x225
> ociweb.com
>
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.isis.vanderbilt.edu/pipermail/tao-users/attachments/20160303/06a5102a/attachment.html>


More information about the tao-users mailing list