Logging APIs

YoSQL supports various logging frameworks and APIs. We recommend that you select one that is already available in your project. By default, YoSQL will use NONE and thus not generate any logging statements. Tooling may change the default based on information obtained from your project, e.g. a dependency on slf4j.

Tooling

Replace configValue with the constant value for whatever logging API you want to use in the generated code.

Maven

In order to use YoSQL together with Maven, take a look at the tooling documentation for Maven.

<build>
    <plugins>
        ...
        <plugin>
            <groupId>wtf.metio.yosql</groupId>
            <artifactId>yosql-tooling-maven</artifactId>
            <version>2021.4.21</version>
            <configuration>
                <apis>
                    <loggingApi>configValue</loggingApi>
                </apis>
            </configuration>
        </plugin>
        ...
    </plugins>
</build>

Gradle

In order to use YoSQL together with Gradle, take a look at the tooling documentation for Gradle.

plugins {
  id("wtf.metio.yosql")
}

yosql {
  apis {
    loggingApi = configValue
  }
}

Bazel

In order to use YoSQL together with Bazel, take a look at the tooling documentation for Bazel.

CLI

In order to use YoSQL on the command line, take a look at the tooling documentation for CLI.

$ yosql --apis-logging-api=configValue

The shorter form is available as well:

$ yosql --logging-api=configValue

Pages