Changes for page Development-WOEvents and Logging
Last modified by Pascal Robert on 2010/09/19 10:30
From version 2.1
edited by smmccraw
on 2007/07/08 09:46
on 2007/07/08 09:46
Change comment:
There is no comment for this version
To version 4.1
edited by Pascal Robert
on 2007/09/03 15:15
on 2007/09/03 15:15
Change comment:
There is no comment for this version
Summary
-
Page properties (3 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - Programming__WebObjects-WebApplications-Development-WOEvents and Logging1 +Web Applications-Development-WOEvents and Logging - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. smmccraw1 +XWiki.probert - Content
-
... ... @@ -1,4 +1,4 @@ 1 -== NSDebugLevel 1 +== NSDebugLevel == 2 2 3 3 These are the available debug levels (WebObjects 5.2.2): 4 4 ... ... @@ -7,36 +7,36 @@ 7 7 * DebugLevelInformational 2 8 8 * DebugLevelDetailed 3 9 9 10 -== NSDebugGroups 10 +== NSDebugGroups == 11 11 12 12 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. 13 13 14 14 For example, if you want to start the logging of WebObjects and EO debug information you can do: 15 15 16 -{{ panel}}16 +{{code}} 17 17 18 - 18 +NSLog.allowDebuggingForGroups(NSLog.DebugGroupWebObjects|NSLog.DebugGroupEnterpriseObjects); 19 19 20 -{{/ panel}}20 +{{/code}} 21 21 22 22 Or: 23 23 24 -{{ panel}}24 +{{code}} 25 25 26 - 26 +NSLog.allowDebuggingForGroups(6); // Flags 2 and 1, ie. 6 = 1L<<2 | 1L<<1 27 27 28 -{{/ panel}}28 +{{/code}} 29 29 30 30 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: 31 31 32 -{{ panel}}32 +{{noformat}} 33 33 34 - 35 - 36 - 37 - 34 +./MyApp -DNSDebugGroups=6 35 +./MyApp -DNSDebugGroups="(2, 1)" 36 +./MyApp -DNSDebugGroups="(NSLog.DebugGroupWebObjects, NSLog.DebugGroupEnterpriseObjects)" 37 +./MyApp -DNSDebugGroups=1:2 38 38 39 -{{/ panel}}39 +{{/noformat}} 40 40 41 41 These are the available debug groups (WebObjects 5.2.2): 42 42 ... ... @@ -67,5 +67,3 @@ 67 67 * DebugGroupValidation 7 68 68 * DebugGroupWebObjects 2 69 69 * DebugGroupWebServices 2 70 - 71 -Category:WebObjects