4 Replies Latest reply: May 4, 2012 3:28 AM by Pratheej RSS

    Timesten Logging

    Pratheej
      Hi,

      Im using the default TimesTen logging.
      ie, the only thing Im doing related to logging of TimesTen is the following ttendaemon.options file entry

      ==================================================
      -supportlog /DGlogs/TimesTen_Logs/ttmesg.log
      -maxsupportlogfiles 20
      -maxsupportlogsize 0x1400000
      -userlog /DGlogs/TimesTen_Logs/tterrors.log
      -maxuserlogfiles 20
      -maxuserlogsize 0x1400000
      ===================================================

      Does this give me the maximum verbose level of TimesTen logging ? Don't want to miss any informational, warning or error messages!!!



      When verified ttDaemonLog utility, I could see some of the options as


      =================================================================
      -show <type> Limits output to given type. Types are:.

      all - Shows all. This is the default.


      -loglevel <level> Specifies that messages of level >= <level>, which is
      a numeric value, should be logged. If <DSN> or <connStr>
      is given, the option applies only to that data store.
      -setverbose Sets logging parameters to a default verbose level.
      ==================================================================


      For getting the maximum verbose level of Timesten logging; do I have to use ttDaemonLog utility with any of the above options.
      Please help.

      Regards
      Pratheej
        • 1. Re: Timesten Logging
          Chrisjenkins-Oracle
          Hi Pratheej,

          The default settings in ttendaemon.options should also include the '-verbose' directive (near the top of the file). This directive is important as otherwise the amount of information logged is considerably reduced and this can make problem diagnosis difficult in the event of any issue.

          The ttDaemonLog utility mainly just displays the contents of the daemon log based on various on various filter conditions that you provide. it does not change what actually gets logged. The exceptions to this statement are the -setquiet and -setverbose which can be used to temporarily change between verbose and non-verbose logging. The log level will revert to what is defined in ttendaemon.options the next time the main daemon is restarted.

          Regards,

          Chris
          • 2. Re: Timesten Logging
            Pratheej
            Hi Chris,
            Thanks for the update.
            I just verified my ttendaemon.options file.
            Following is the full content.

            =================================
            # Commented values are default values
            -supportlog /DGlogs/TimesTen_Logs/ttmesg.log
            -maxsupportlogfiles 20
            -maxsupportlogsize 0x1400000
            -userlog /DGlogs/TimesTen_Logs/tterrors.log
            -maxuserlogfiles 20
            -maxuserlogsize 0x1400000
            #
            -verbose
            #-tns_admin
            -server 53389
            -showdate
            -serverpool 6
            =================================

            Here -verbose directive is present. Does this suffice my requirement, or do I have to place it on top portion of the file to make it effect?


            Thanks
            Pratheej
            • 3. Re: Timesten Logging
              Chrisjenkins-Oracle
              Yes, that is fine. The order of the directives within the file is not important. As long as the -verbose is present somewhere it is okay.

              Chris
              • 4. Re: Timesten Logging
                Pratheej
                Thanks Chris.