1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
21 module com
{ module sun
{ module star
{ module logging
{
24 /** provides possibilities to send LogRecords to an arbitrary output
33 /** allows life time control for the handler
35 <p>Disposing the handler effectively means closing the channel
36 to which the handler forwards the log records.
38 interface ::com
::sun
::star
::lang
::XComponent
;
40 /** specifies MIME charset name for the encoding to be used by this handler
42 <p>It depends on the concrete handler implementation whether or not this
43 parameter is needed.<p>
45 @see http://www.iana.org/assignments/character-sets
47 [attribute
] string Encoding
;
49 /** specifies the formatter to be used by this handler.
51 [attribute
] XLogFormatter Formatter
;
53 /** specifies the log level of this handler
55 <p>Different handlers can have different log levels, which again might be
56 different from the log level of the XLogger for which the handlers
59 [attribute
] long Level
;
61 /** flushes all buffered output of the handler
63 <p>Log handlers are allowed to buffer their output. Upon <code>flush</code>
64 being called, they must flush all their buffers.</p>
68 /** publish the given log record at the handler's output channel.
71 `TRUE` if and only if the record was actually published. A handler
72 will not publish a record if its log level doesn't meet the handler's
73 log level, if the record is filtered, or if any other handler-specified
76 boolean publish
( [in] LogRecord Record
);
83 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */