-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathlogger.xml
76 lines (64 loc) · 3.55 KB
/
logger.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!--
~ Copyright (c) 2001-2014, TIBCO Software Inc.
~ Use, modification, and distribution subject to terms of license.
-->
<configuration>
<!-- Caches the most recent logging messages in memory.
Note that Builder assumes that there is a MemoryHandler instance registered as 'memory',
although it will fail quietly if a dependent operation is attempted. -->
<handler name="memory" class="jsx3.util.Logger.MemoryHandler">
<property name="bufferSize" eval="true" value="1000"/>
</handler>
<!-- Logs messages to the Firebug console, when available. -->
<handler name="console" class="jsx3.util.Logger.ConsoleHandler"/>
<!-- Prints logging messages to Builder's system out panel.
For logging in Builder to work there should be exactly one handler of type SystemLogHandler
defined here. -->
<handler name="ide" class="jsx3.ide.SystemLogHandler" lazy="true">
<property name="bufferSize" eval="true" value="0"/>
<property name="format" value="%t %n (%l) - %M"/>
<property name="beepLevel" eval="true" value="jsx3.util.Logger.OFF"/>
</handler>
<!-- Sends a formatted logging message to a JavaScript alert. -->
<handler name="alerter" class="jsx3.util.Logger.AlertHandler" level="ERROR">
<property name="format" value="%t %n (%l) - %M"/>
</handler>
<!-- Ensures that any fatal error is displayed in a JavaScript alert. Fatal messages usually relate to failure to
inialize the system or load an application and so may indicate that other handlers are not visible. -->
<handler name="fatal" class="jsx3.util.Logger.AlertHandler" level="FATAL">
<property name="format" value="%t %n (%l) - %M"/>
</handler>
<!-- Register an application monitor handler. When the application with namespace "myApp" is running outside
of GI Builder, a separate browser window will open and receive logger messages. The require="true"
attribute is required when running under as-needed class loading (jsxlt) because jsx3.app.Monitor is an
optional class.
serverNamespace - must match the namespace of the application to attach to. If this attribute is omitted
completely, the monitor window is not associated with a particular application and the disableInIDE and
activateOnHotKey attributes have no meaning.
disableInIDE (default:true) - disables the application monitor while the IDE is running.
activateOnHotKey (default:false) - disables the application monitor until the hot key ctrl+alt+m is pressed
in the application.
<handler name="appMonitor1" class="jsx3.app.Monitor" require="true">
<property name="serverNamespace" value="myApp"/>
<property name="disableInIDE" eval="true" value="true"/>
<property name="activateOnHotKey" eval="true" value="false"/>
<property name="format" value="%t %n (%l) - %M"/>
</handler>
-->
<!-- The global logger. -->
<logger name="global" level="INFO">
<handler-ref name="memory"/>
<handler-ref name="console"/>
<handler-ref name="ide"/>
<handler-ref name="fatal"/>
<!--<handler-ref name="appMonitor1"/>-->
</logger>
<logger name="jsx3" level="WARN"/>
<logger name="jsx3.ide" level="WARN"/>
<logger name="bench" level="WARN"/> <!-- "bench" and its descendants are used by GI benchmarking code -->
<!-- Since an error in the logging system may mean that other handlers are not working, we'll send any error to
a JavaScript alert with the alerter handler. -->
<logger name="jsx3.util.Logger" level="WARN" useParent="false">
<handler-ref name="alerter"/>
</logger>
</configuration>