xref: /trunk/main/offapi/com/sun/star/logging/LogLevel.idl (revision 96af39f7)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24#ifndef __com_sun_star_logging_LogLevel_idl__
25#define __com_sun_star_logging_LogLevel_idl__
26
27//=============================================================================
28
29module com { module sun { module star { module logging {
30
31//=============================================================================
32
33/** specifies levels to distinguish between severities of logged events
34
35    @see XLogger
36
37    @since OpenOffice 2.3
38 */
39constants LogLevel
40{
41    /** specifies that no messages are to be logged at all
42
43        <p>This level can be set at an <type>XLogger</type> to completely prevent
44        logging. You will usually not use it with a concrete log event.</p>
45    */
46    const long  OFF       = 0x7FFFFFFF;
47
48    /// denotes a serious failure to be logged
49    const long  SEVERE    =       1000;
50
51    /// denotes a potential problem to be logged
52    const long  WARNING   =        900;
53
54    /// denotes an informational message to be logged
55    const long  INFO      =        800;
56
57    /// denotes a static configuration message to be logged
58    const long  CONFIG    =        700;
59
60    /// denotes basic tracing information to be logged
61    const long  FINE      =        500;
62
63    /// denotes more fine-grained tracing information to be logged
64    const long  FINER     =        400;
65
66    /// denotes highly detailed tracing information to be logged
67    const long  FINEST    =        300;
68
69    /** specifies that all messages should be logged
70
71        <p>This level can be set at an <type>XLogger</type> to enable logging
72        of absolutely all events. You will usually not use it with a concrete log event.</p>
73    */
74    const long  ALL       = -0x80000000;
75};
76
77//=============================================================================
78
79}; }; }; };
80
81//=============================================================================
82
83#endif
84