Last modified by Pascal Robert on 2010/09/19 10:30

From version 4.1
edited by Pascal Robert
on 2007/09/03 15:15
Change comment: There is no comment for this version
To version 1.1
edited by smmccraw
on 2007/07/08 09:46
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -Web Applications-Development-WOEvents and Logging
1 +Programming__WebObjects-Web Applications-Development-WOEvents and Logging
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.probert
1 +XWiki.smmccraw
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 -{{code}}
16 +{{panel}}
17 17  
18 -NSLog.allowDebuggingForGroups(NSLog.DebugGroupWebObjects|NSLog.DebugGroupEnterpriseObjects);
18 + NSLog.allowDebuggingForGroups(NSLog.DebugGroupWebObjects|NSLog.DebugGroupEnterpriseObjects);
19 19  
20 -{{/code}}
20 +{{/panel}}
21 21  
22 22  Or:
23 23  
24 -{{code}}
24 +{{panel}}
25 25  
26 -NSLog.allowDebuggingForGroups(6); // Flags 2 and 1, ie. 6 = 1L<<2 | 1L<<1
26 + NSLog.allowDebuggingForGroups(6); // Flags 2 and 1, ie. 6 = 1L<<2 | 1L<<1
27 27  
28 -{{/code}}
28 +{{/panel}}
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 -{{noformat}}
32 +{{panel}}
33 33  
34 -./MyApp -DNSDebugGroups=6
35 -./MyApp -DNSDebugGroups="(2, 1)"
36 -./MyApp -DNSDebugGroups="(NSLog.DebugGroupWebObjects, NSLog.DebugGroupEnterpriseObjects)"
37 -./MyApp -DNSDebugGroups=1:2
34 + ./MyApp -DNSDebugGroups=6
35 + ./MyApp -DNSDebugGroups="(2, 1)"
36 + ./MyApp -DNSDebugGroups="(NSLog.DebugGroupWebObjects, NSLog.DebugGroupEnterpriseObjects)"
37 + ./MyApp -DNSDebugGroups=1:2
38 38  
39 -{{/noformat}}
39 +{{/panel}}
40 40  
41 41  These are the available debug groups (WebObjects 5.2.2):
42 42  
... ... @@ -67,3 +67,5 @@
67 67  * DebugGroupValidation 7
68 68  * DebugGroupWebObjects 2
69 69  * DebugGroupWebServices 2
70 +
71 +Category:WebObjects