Dashboard > WebObjects > Web Applications-Development-WOEvents and Logging
  WebObjects Log In View a printable version of the current page.  
  Web Applications-Development-WOEvents and Logging
Added by Steven Mark McCraw, last edited by Pascal Robert on Sep 03, 2007  (view change)
Labels: 
(None)

NSDebugLevel

These are the available debug levels (WebObjects 5.2.2):

  • DebugLevelOff 0
  • DebugLevelCritical 1
  • DebugLevelInformational 2
  • DebugLevelDetailed 3

NSDebugGroups

Debug groups are defined as flags in a 64-bit array. The value shown in the documentation is the index of the specific debug group flag in this array.

For example, if you want to start the logging of WebObjects and EO debug information you can do:

NSLog.allowDebuggingForGroups(NSLog.DebugGroupWebObjects|NSLog.DebugGroupEnterpriseObjects);

Or:

NSLog.allowDebuggingForGroups(6);  // Flags 2 and 1, ie. 6 = 1L<<2 | 1L<<1

You can specify debug groups in a command-line argument, either as a single numerical value (as above), as a list of flags or as a range of flags. For example all the following are equivalent:

./MyApp -DNSDebugGroups=6
./MyApp -DNSDebugGroups="(2, 1)"
./MyApp -DNSDebugGroups="(NSLog.DebugGroupWebObjects, NSLog.DebugGroupEnterpriseObjects)"
./MyApp -DNSDebugGroups=1:2

These are the available debug groups (WebObjects 5.2.2):

  • DebugGroupApplicationGeneration 3
  • DebugGroupArchiving 6
  • DebugGroupAssociations 19
  • DebugGroupComponentBindings 9
  • DebugGroupControllers 20
  • DebugGroupComponents 26
  • DebugGroupDatabaseAccess 16
  • DebugGroupDeployment 22
  • DebugGroupEnterpriseObjects 1
  • DebugGroupFormatting 10
  • DebugGroupIO 13
  • DebugGroupJSPServlets 27
  • DebugGroupKeyValueCoding 8
  • DebugGroupModel 15
  • DebugGroupMultithreading 4
  • DebugGroupParsing 23
  • DebugGroupQualifiers 11
  • DebugGroupReflection 24
  • DebugGroupRequestHandling 25
  • DebugGroupResources 5
  • DebugGroupRules 21
  • DebugGroupSQLGeneration 17
  • DebugGroupTiming 14
  • DebugGroupUserInterface 18
  • DebugGroupValidation 7
  • DebugGroupWebObjects 2
  • DebugGroupWebServices 2

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators