commit | a215f3ee45831c1b5da9984c05fcd64d0adb6552 | [log] [tgz] |
---|---|---|
author | Jacek Centkowski <jcentkowski@collab.net> | Tue Mar 10 20:25:33 2020 +0100 |
committer | David Pursehouse <dpursehouse@collab.net> | Mon Mar 16 15:48:44 2020 +0900 |
tree | dc443429d305e554d5e6449464d8d0e1fc0c7467 | |
parent | 1a83264828f382d67ab2323e8b0ca27652f746c2 [diff] |
Introduce NamedFluentLogger Regardless of its flexibility, FluentLogger doesn't provide an API to create a logger with predefined name, which is possible with slf4j, for example: Logger logger = LoggerFactory.getLogger("my_logger_name"); This is used for example in the replication plugin, and the GC logger, which both create a named log and set up a specific appender that uses it. It is also possible that there are other plugins that need to make use of it during migration to Flogger. For example, CollabNet has an internal plugin that would need it. A proposal to add such an API [1] was not accepted, with suggestion for a more advanced solution. Since it's unlikely that this will happen soon, we add a simple solution that can be used within core Gerrit and its plugins: NamedFluentLogger logger = NamedFluentLogger.forName("my_logger_name"); In the long term, after a suitable API is added in FluentLogger, we can remove this. [1] https://github.com/google/flogger/pull/138 Change-Id: Ieb914961bc1133d74684ecc39cae86c2e693daf9
Gerrit is a code review and project management tool for Git based projects.
Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.
Gerrit simplifies Git based project maintainership by permitting any authorized user to submit changes to the master Git repository, rather than requiring all approved changes to be merged in by hand by the project maintainer.
For information about how to install and use Gerrit, refer to the documentation.
Our canonical Git repository is located on googlesource.com. There is a mirror of the repository on Github.
Please report bugs on the issue tracker.
Gerrit is the work of hundreds of contributors. We appreciate your help!
Please read the contribution guidelines.
Note that we do not accept Pull Requests via the Github mirror.
The Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Bazel and run the following:
git clone --recurse-submodules https://gerrit.googlesource.com/gerrit cd gerrit && bazel build release
The instruction how to configure GerritForge/BinTray repositories is here
On Debian/Ubuntu run:
apt-get update & apt-get install gerrit=<version>-<release>
NOTE: release is a counter that starts with 1 and indicates the number of packages that have been released with the same version of the software.
On CentOS/RedHat run:
yum clean all && yum install gerrit-<version>[-<release>]
On Fedora run:
dnf clean all && dnf install gerrit-<version>[-<release>]
Docker images of Gerrit are available on DockerHub
To run a CentOS 7 based Gerrit image:
docker run -p 8080:8080 gerritforge/gerrit-centos7[:version]
To run a Ubuntu 15.04 based Gerrit image:
docker run -p 8080:8080 gerritforge/gerrit-ubuntu15.04[:version]
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.