diff --git a/deps.bzl b/deps.bzl index 7163a95..07450d8 100644 --- a/deps.bzl +++ b/deps.bzl @@ -7,3 +7,9 @@ def go_dependencies(): sum = "h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=", version = "v1.1.1", ) + go_repository( + name = "com_github_hashicorp_go_syslog", + importpath = "github.com/hashicorp/go-syslog", + sum = "h1:KaodqZuhUoZereWVIYmpUgZysurB1kBLX2j0MwMrUAE=", + version = "v1.0.0", + ) diff --git a/log/BUILD.bazel b/log/BUILD.bazel new file mode 100644 index 0000000..a73a852 --- /dev/null +++ b/log/BUILD.bazel @@ -0,0 +1,9 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library") + +go_library( + name = "log", + srcs = ["logger.go"], + importpath = "git.wntrmute.dev/kyle/kdhcp/log", + visibility = ["//visibility:public"], + deps = ["@com_github_hashicorp_go_syslog//:go-syslog"], +)