daml/libs-scala/doobie-slf4j/BUILD.bazel
Stefano Baghino 42e071f2c2
Add //libs-scala/doobie-slf4j and replace usages of jdkLogHandler (#8731)
The jdkLogHandler provided by Doobie exists purely as an example and the library
itself does not recommend using it in production.

Note that this slightly changes the runtime behavior, logging successful queries
at debug level rather then info. The message itself is preserved from the original
MIT-licensed example.

This uses Slf4j as most of our components, instead of java.util.logging.

changelog_begin
[HTTP JSON API] The server now logs successful queries at debug level
instead of info
[Trigger Service] The server now logs successful queries at debug level
instead of info
changelog_end
2021-02-03 10:45:05 +00:00

24 lines
578 B
Python

# Copyright (c) 2021 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
load(
"//bazel_tools:scala.bzl",
"da_scala_library",
"da_scala_test_suite",
)
da_scala_library(
name = "doobie-slf4j",
srcs = glob(["src/main/scala/**/*.scala"]),
scala_deps = [
"@maven//:org_tpolecat_doobie_core",
],
tags = ["maven_coordinates=com.daml:doobie-slf4j:__VERSION__"],
visibility = [
"//:__subpackages__",
],
deps = [
"@maven//:org_slf4j_slf4j_api",
],
)