1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 *   Licensed to the Apache Software Foundation (ASF) under one or more
12 *   contributor license agreements. See the NOTICE file distributed
13 *   with this work for additional information regarding copyright
14 *   ownership. The ASF licenses this file to you under the Apache
15 *   License, Version 2.0 (the "License"); you may not use this file
16 *   except in compliance with the License. You may obtain a copy of
17 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 -->
19<!DOCTYPE oor:component-schema SYSTEM "../../../../component-schema.dtd">
20<oor:component-schema xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" oor:name="Logging" oor:package="org.openoffice.Office" xml:lang="en-US">
21  <info>
22    <desc>Contains preferences the Logger components.</desc>
23  </info>
24  <templates>
25    <group oor:name="LoggerSettings">
26      <info>
27        <desc>contains preferences for a single Logger.</desc>
28      </info>
29      <prop oor:name="LogLevel" oor:type="xs:int" oor:nillable="false">
30        <info>
31          <desc>Specifies the log level of the logger.</desc>
32        </info>
33        <value>2147483647</value>
34      </prop>
35      <prop oor:name="DefaultHandler" oor:type="xs:string" oor:nillable="true">
36        <info>
37          <desc>Specifies the UNO service name of the default handler for the logger.</desc>
38        </info>
39        <value>com.sun.star.logging.FileHandler</value>
40      </prop>
41      <group oor:name="HandlerSettings" oor:extensible="true">
42        <info>
43          <desc>Specifies the settings for the default handler (DefaultHandler property) of
44            the logger. Plain properties below the HandlerSettings node are passed to
45            the log handler upon creation, as sequence of NamedValues.</desc>
46        </info>
47        <prop oor:name="FileURL" oor:type="xs:string" oor:nillable="false">
48          <info>
49            <desc>Specifies the file URL for the log handler.
50                This URL will be resolved using the
51                ::com::sun::star::util::PathSubstitution service. That is, it is
52                allowed to include placeholders supported by that service,
53                such as $(userurl). Beside these, the following default
54                placeholders can also be included:
55                    $(loggername) - the name of the logger
56                    $(date) - the current date
57                    $(time) - the current time
58                    $(datetime) - the current date time
59                    $(pid) - the process identifier
60                The default value here will expand to a file with the same name
61                as the logger for which the handler is used, with extension &quot;.log&quot;.
62                It will be located in the user's OOo data folder.
63            </desc>
64          </info>
65          <value>$(userurl)/$(loggername).log</value>
66        </prop>
67      </group>
68      <prop oor:name="DefaultFormatter" oor:type="xs:string" oor:nillable="true">
69        <info>
70          <desc>Specifies the UNO service name of the default formatter for the logger.</desc>
71        </info>
72        <value>com.sun.star.logging.PlainTextFormatter</value>
73      </prop>
74      <group oor:name="FormatterSettings" oor:extensible="true">
75        <info>
76          <desc>Specifies the settings for the default formatter (DefaultFormatter property) of
77            the logger. Plain properties below the FormatterSettings node are passed to
78            the log formatter upon creation, as sequence of NamedValues.</desc>
79        </info>
80      </group>
81    </group>
82  </templates>
83  <component>
84    <set oor:name="Settings" oor:node-type="LoggerSettings">
85      <info>
86        <desc>contains the settings for all known loggers in OpenOffice.org.</desc>
87      </info>
88    </set>
89  </component>
90</oor:component-schema>
91