provide dummy implementations for ti- and system-logging generators
[yosql.git] / yosql-testing / yosql-testing-logging / src / main / java / wtf / metio / yosql / testing / logging / Loggers.java
blob0e95409b9b8c7d7bbec7c5fbce5622aaeec71f87
1 /*
2 * This file is part of yosql. It is subject to the license terms in the LICENSE file found in the top-level
3 * directory of this distribution and at http://creativecommons.org/publicdomain/zero/1.0/. No part of yosql,
4 * including this file, may be copied, modified, propagated, or distributed except according to the terms contained
5 * in the LICENSE file.
6 */
8 package wtf.metio.yosql.testing.logging;
10 import wtf.metio.yosql.logging.api.DelegatingLoggingGenerator;
11 import wtf.metio.yosql.logging.api.LoggingGenerator;
12 import wtf.metio.yosql.logging.jul.JulLoggingGenerator;
13 import wtf.metio.yosql.logging.log4j.Log4jLoggingGenerator;
14 import wtf.metio.yosql.logging.noop.NoOpLoggingGenerator;
15 import wtf.metio.yosql.logging.slf4j.Slf4jLoggingGenerator;
16 import wtf.metio.yosql.logging.system.SystemLoggingGenerator;
17 import wtf.metio.yosql.logging.ti.ThatsInteresingLoggingGenerator;
18 import wtf.metio.yosql.testing.codegen.Blocks;
19 import wtf.metio.yosql.testing.configs.Apis;
21 import java.util.LinkedHashSet;
23 public final class Loggers {
25 public static LoggingGenerator loggingGenerator() {
26 final var generators = new LinkedHashSet<LoggingGenerator>();
27 generators.add(new JulLoggingGenerator(Blocks.names(), Blocks.fields()));
28 generators.add(new Log4jLoggingGenerator(Blocks.names(), Blocks.fields()));
29 generators.add(new Slf4jLoggingGenerator(Blocks.names(), Blocks.fields()));
30 generators.add(new SystemLoggingGenerator());
31 generators.add(new ThatsInteresingLoggingGenerator());
32 generators.add(new NoOpLoggingGenerator());
33 return new DelegatingLoggingGenerator(Apis.jul(), generators);
36 private Loggers() {
37 // factory class