Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SmartClient Developer Console - Add Categories Programmatically

    Hi all,

    I was wondering if there is a way to set the default logging levels for the Smart GWT console?

    What I would like do is set all the logging levels to Debug and add all my custom categories into the list a standard.

    The reason for this is that I have many categories and when I log into a clients system I can never remember the names of the categories so would ideally like them to already be in the list so I can just turn them on.

    I have read the debugging article but that doesn't include any information on programmatically adding client debugging categories.

    Thanks,
    Dale
    Last edited by ellisd5; 9 Feb 2015, 02:34.

    #2
    There's no current API to do this. While you could sponsor a feature here, we'd honestly just recommend keeping a file handy that has the list of log categories. Put it on your smartphone, for instance.

    Also note: it basically never makes sense to set all of the built-in log categories to DEBUG at once. That produces megabytes of log output in just a few interactions with a typical application.

    Comment


      #3
      Ok thanks, I'll have to do that, note the category names.

      And apologies, setting all to debug was a typo, meant all to error, think there are a few that default to info but as you have stated that's not possible so that's fine, that ones not a big issue.

      Thanks,
      Dale

      Comment


        #4
        You also don't want to set everything to ERROR level, since that would squelch lots of key framework warnings.

        Basically, leave the defaults alone until you really know what each category contains and have a specific need for more or less diagnostics in a specific area.

        Comment

        Working...
        X