]> git.basschouten.com Git - openhab-addons.git/blob
4207739807fd808585a421ebd6a1598bfcfccacc
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.logreader.internal.config;
14
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
17
18 /**
19  * Configuration class for LogReader binding.
20  *
21  * @author Pauli Anttila - Initial contribution
22  */
23 @NonNullByDefault
24 public class LogReaderConfiguration {
25     public String filePath = "${OPENHAB_LOGDIR}/openhab.log";
26     public int refreshRate = 1000;
27     public String warningPatterns = "WARN+";
28     public @Nullable String warningBlacklistingPatterns;
29     public String errorPatterns = "ERROR+";
30     public @Nullable String errorBlacklistingPatterns;
31     public @Nullable String customPatterns;
32     public @Nullable String customBlacklistingPatterns;
33
34     @Override
35     public String toString() {
36         return "[" + "filePath=" + filePath + ", refreshRate=" + refreshRate + ", warningPatterns=" + warningPatterns
37                 + ", warningBlacklistingPatterns=" + warningBlacklistingPatterns + ", errorPatterns=" + errorPatterns
38                 + ", errorBlacklistingPatterns=" + errorBlacklistingPatterns + ", customPatterns=" + customPatterns
39                 + ", customBlacklistingPatterns=" + customBlacklistingPatterns + "]";
40     }
41 }