woven-planet / slog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slog

Slog (reads "S-log") is a simple, fast, and cross-language structured logging. It's like Glog but allows structure via tags and async handling.

Importing

Into a C++ project built by Bazel

Requirements:

  • C++14

Instructions:

  • Follow the example from test_import/example_project_cc_via_bazel directory.

Into a Python project built by Bazel

Requirements:

  • All C++ requirements from above
  • Python 3.8
  • pybind11 and pybind11_bazel

Instructions:

  • Follow the example from test_import/example_project_py_via_bazel directory.

Contributing

Installing tools for build

  • scripts/setup_dev_env.sh

Running tests

  • bazelisk test --test_output=errors //... -- run all unit tests.

Code formatting

  • For the first time, install linters with ./scripts/install_linters.sh
  • scripts/lint.sh ./ -i -- automatically format all code.

Releases.

TODO(vsbus): update this section. CI automatically uploads a zip-archive to https://artifactory.pdx.l5.woven-planet.tech/repository/webapp/#/artifacts/browse/tree/General/mothership/slog/. This .zip archive could be imported into another bazel project, e.g. using the following URL: https://artifactory.pdx.l5.woven-planet.tech/repository/mothership/slog/slog-v0.2.27.zip. The .zip file naming and content are matching a .zip file that could be created via GitHub releases at https://github.tri-ad.tech/level5/slog/releases.

About

License:Apache License 2.0


Languages

Language:C++ 75.1%Language:Starlark 14.1%Language:Python 6.5%Language:Shell 3.5%Language:C 0.9%