Wiki source code of Development-WOEvents and Logging
Last modified by Pascal Robert on 2010/09/19 10:30
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | == NSDebugLevel == | ||
2 | |||
3 | These are the available debug levels (WebObjects 5.2.2): | ||
4 | |||
5 | * DebugLevelOff 0 | ||
6 | * DebugLevelCritical 1 | ||
7 | * DebugLevelInformational 2 | ||
8 | * DebugLevelDetailed 3 | ||
9 | |||
10 | == NSDebugGroups == | ||
11 | |||
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 | |||
14 | For example, if you want to start the logging of WebObjects and EO debug information you can do: | ||
15 | |||
16 | {{code}} | ||
17 | |||
18 | NSLog.allowDebuggingForGroups(NSLog.DebugGroupWebObjects|NSLog.DebugGroupEnterpriseObjects); | ||
19 | |||
20 | {{/code}} | ||
21 | |||
22 | Or: | ||
23 | |||
24 | {{code}} | ||
25 | |||
26 | NSLog.allowDebuggingForGroups(6); // Flags 2 and 1, ie. 6 = 1L<<2 | 1L<<1 | ||
27 | |||
28 | {{/code}} | ||
29 | |||
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 | |||
32 | {{noformat}} | ||
33 | |||
34 | ./MyApp -DNSDebugGroups=6 | ||
35 | ./MyApp -DNSDebugGroups="(2, 1)" | ||
36 | ./MyApp -DNSDebugGroups="(NSLog.DebugGroupWebObjects, NSLog.DebugGroupEnterpriseObjects)" | ||
37 | ./MyApp -DNSDebugGroups=1:2 | ||
38 | |||
39 | {{/noformat}} | ||
40 | |||
41 | These are the available debug groups (WebObjects 5.2.2): | ||
42 | |||
43 | * DebugGroupApplicationGeneration 3 | ||
44 | * DebugGroupArchiving 6 | ||
45 | * DebugGroupAssociations 19 | ||
46 | * DebugGroupComponentBindings 9 | ||
47 | * DebugGroupControllers 20 | ||
48 | * DebugGroupComponents 26 | ||
49 | * DebugGroupDatabaseAccess 16 | ||
50 | * DebugGroupDeployment 22 | ||
51 | * DebugGroupEnterpriseObjects 1 | ||
52 | * DebugGroupFormatting 10 | ||
53 | * DebugGroupIO 13 | ||
54 | * DebugGroupJSPServlets 27 | ||
55 | * DebugGroupKeyValueCoding 8 | ||
56 | * DebugGroupModel 15 | ||
57 | * DebugGroupMultithreading 4 | ||
58 | * DebugGroupParsing 23 | ||
59 | * DebugGroupQualifiers 11 | ||
60 | * DebugGroupReflection 24 | ||
61 | * DebugGroupRequestHandling 25 | ||
62 | * DebugGroupResources 5 | ||
63 | * DebugGroupRules 21 | ||
64 | * DebugGroupSQLGeneration 17 | ||
65 | * DebugGroupTiming 14 | ||
66 | * DebugGroupUserInterface 18 | ||
67 | * DebugGroupValidation 7 | ||
68 | * DebugGroupWebObjects 2 | ||
69 | * DebugGroupWebServices 2 |