Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / logging / LogRecord.idl
blobd0ae88e1b00e1a07a1faf917fec1cdd848034c21
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef __com_sun_star_logging_LogRecord_idl__
21 #define __com_sun_star_logging_LogRecord_idl__
23 #include <com/sun/star/util/DateTime.idl>
26 module com { module sun { module star { module logging {
29 /** assembles the complete information about a to-be-logged event
31 @see XLogger
33 @since OOo 2.3
35 struct LogRecord
37 /// specifies the name of the logger at which the record is logged
38 string LoggerName;
40 /** specifies the name of the class, in which the record was logged.
42 This name might be empty, in case the caller to one of the various
43 <code>log</code> methods of XLogger did not specify it.
45 string SourceClassName;
47 /** specifies the name of the method, in which the record was logged.
49 This name might be empty, in case the caller to one of the various
50 <code>log</code> methods of XLogger did not specify it.
52 string SourceMethodName;
54 /// specifies the to-be-logged message
55 string Message;
57 /// specifies the time at which the event was logged
58 ::com::sun::star::util::DateTime
59 LogTime;
61 /** specifies the number of the log event.
63 Subsequent events get assigned increasing sequence numbers by the XLogger
64 at which they're logged.
66 hyper SequenceNumber;
68 /// specifies the ID of the thread in which the event was logged
69 string ThreadID;
71 /** specifies the level of the log event
73 @see LogLevel
75 long Level;
79 }; }; }; };
82 #endif
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */