Comments (4)
you need to have a level filter enabling on both the log source side and log sink (handler) side.
First, you should be specifying the logging.properties file via the instructions here for server or worker (whichever you want to control).
Next, you'll need to enable buildfarm-scoped logging with the logging.properties via a line like this:
build.buildfarm.level=FINE
in that file. More excruciating details in https://docs.oracle.com/en/java/javase/11/core/java-logging-overview.html#GUID-B83B652C-17EA-48D9-93D2-563AE1FF8EDA__CONFIGURATIONFILE-4C48BDCE.
from bazel-buildfarm.
Hey, thanks for the answer. Unfortunately it does not work, it does not output any logs when I'm building or testing a target.
I'm running the following commands:
bazel run src/main/java/build/buildfarm:buildfarm-shard-worker -- --jvm_flag=-Djava.util.logging.config.file=$PWD/examples/logging.properties --prometheus_port=0 $PWD/examples/config.minimal.yml
bazel run src/main/java/build/buildfarm:buildfarm-server -- --jvm_flag=-Djava.util.logging.config.file=$PWD/examples/logging.properties $PWD/examples/config.minimal.yml
My logging.properties file looks like this:
build.buildfarm.level=FINE
handlers=java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level=FINE
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
java.util.logging.SimpleFormatter.format=[%4$-7s] %2$s - %5$s %6$s %n
The only logs I get in the worker are the initialisation part:
[INFO ] build.buildfarm.cas.cfc.CASFileCache start - Initializing cache at: /tmp/worker/cache
[INFO ] build.buildfarm.cas.cfc.CASFileCache joinThreads - Scanning Cache Root...
[INFO ] build.buildfarm.cas.cfc.CASFileCache logCacheScanResults - {"keys":904,"dirs":0,"delete":0}
[INFO ] build.buildfarm.cas.cfc.CASFileCache logComputeDirectoriesResults - {"invalid dirs":0}
[INFO ] build.buildfarm.cas.cfc.CASFileCache start - Creating Index
[INFO ] build.buildfarm.cas.cfc.CASFileCache start - Index Created
[INFO ] build.buildfarm.cas.cfc.CASFileCache start - Startup Time: 0s
[INFO ] build.buildfarm.metrics.prometheus.PrometheusPublisher startHttpServer - Prometheus port is not configured. HTTP Server will not be started
[INFO ] build.buildfarm.worker.shard.Worker start - buildfarm-worker-localhost:8981-7ac2c4d0-a46d-496c-b52d-0677c4254166 initialized
from bazel-buildfarm.
FINE for me prints linkDirectory and Executor polls for jobs that run over several seconds.
If you're specifically interested in seeing executions flow through the worker, try build.buildfarm.worker.level=FINER
(and make sure you bump up the sink to FINER as well:
build.buildfarm.worker.level=FINER
handlers=java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level=FINER
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
java.util.logging.SimpleFormatter.format=[%4$-7s] %2$s - %5$s %6$s %n
from bazel-buildfarm.
Ok, I guess the builds I was running were too fast for the polls to register. With FINER I also get every request in the logs.
Thank you!
from bazel-buildfarm.
Related Issues (20)
- Support Multiple Hashing Function
- Remote execution service executing processes locally HOT 4
- ERROR: Failed to query remote execution capabilities: UNAVAILABLE: io exception HOT 4
- Feasibility Analysis of Using Buildfarm for Large-Scale Development HOT 2
- Verbose Logging for Servers and Workers through Helm Chart
- Check logs during remote execution HOT 4
- Incorrect container port for Shard-worker in Helm template
- hardlinks in CAS leads to task failure in some cases HOT 2
- Fetch asset support for credential use
- [Bzlmod] No repository visible as '@maven' from main repository HOT 1
- Querying remote cache failed due to Missing Digest HOT 5
- Helm chart won't deploy workers because {ready,live}ness probes are using the wrong port
- When is the release? HOT 1
- Helm chart deployment storage issues
- FindMissingBlobs histogram has too few buckets
- CGroups v2 HOT 1
- RedisShardSubscription::stop is unsafe
- 无任务时redis CPU占用过高 HOT 2
- Transfer bazel-buildfarm to bazel-contrib HOT 3
- When configuring Bazel Buildfarm, setting actionCacheExpire to be less than casExpire is more reasonable ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bazel-buildfarm.