Hi I want to see what is being passed to a rule that is defined in a rules.bzl file. So I would like to add just a logging statement inside of either the BUILD file or the rules.bzl file just to see what parameter was passed. I realize there is a whole --execution_log_binary_file and there is a good deal of stuff to read up on, but I am definitely looking to do something just once and quick and dirty. Do I import logging module? Is it something else? Thanks
bazel logging inside of a BUILD file
5.4k Views Asked by uh_big_mike_boi At
2
There are 2 best solutions below
0
Brian Silverman
On
bazel query --output=build //my/package:all will print out the definitions of all the targets created by macros called from my/package/BUILD by any .bzl file. This includes all the attributes passed to to various rules to create those targets.
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in PYTHON-3.X
- Update a text file with ( new words+ \n ) after the words is appended into a list
- Kivy - Create new widget and set its position and size
- TypeError: encoding or errors without a string argument
- How to print varible name in python
- PyQt, Python 3: Lambda slot assigning signal argument to a variable?
- How to write data to stdin of the first process in a Python shell pipeline?
- pygame.draw.circle, still draws a square
- Duplicate Frames Created When Calling a Function in a Tkinter Application
- Python TypeError: can only concatenate tuple (not "int") to tuple
- recursively editing member variable: All instances have same value
- missing 1 required positional argument: 'key'
- How do I fix this sorting error?
- Dictionary values missing
- Why does opening a file in two different encodings work as expected?
- Binary bit flip generator in python
Related Questions in BAZEL
- Tensorflow add a new op, could not import from python
- Compile OpenSSL for Android with Bazel
- Uncertain how to run Bazel: Tensorflow Inception Retrain New Categories Tutorial Python
- building a tensorflow based android app with tensorflow as a repository
- How to create a CRON job which runs a bazel command
- Errors when trying to build label_image neural net with bazel
- how to use clang++ instead g++ in Bazel
- tensorflow model im2txt: error when using Bazel build "couldn't determine target from filename"
- can not get APK through bazel build in tensorflow
- syntaxnet ./configure error
- everytime my Ubuntu is rebooted, Tensorflow with GPU support needs to be rebuild
- Sending specific compilation flags for static compilation with Bazel Build
- Setting targetSdkVersion and compileSdkVersion for bazel, android tensorflow
- What is the right way to refer bazel data files in python?
- Compiling a custom TensorFlow operation outside TF source tree
Related Questions in BAZEL-RULES
- Bazel 3.5.1 version download
- gazelle+protobuf problem: does not have mandatory providers: 'GoLibrary'
- Understanding "inputs" parameter of Bazel "run" action
- Reference environment variables in Bazel oci_image entrypoint
- How to add Bazel BUILD rules for open telemetry protos?
- How to configure a header based on the sources that include it in bazel?
- Can I set value of an outgoing bazel transition based on properties of the dep?
- http_archive: Build file is not a regular file
- Bazel re-export headers in a cc_library from it's dependencies to pass `layering_check`
- How to patch additional build commands to third party CMake-only library built within BAZEL project?
- Link errors when trying to create a c++ binary depending on ITK libraries using bazel (undefined references)
- Is there a way to find out which actions constitute a cache hit or miss?
- Bzlmod support for rules_ispc
- Bazel: Returning all providers of another Target
- Bazel build failed using `rust_binary`
Related Questions in BAZEL-PYTHON
- Can I create a BUILD file that can reference and run several tests?
- Creating Python zip for AWS Lambda using Bazel
- NameError with extend_path using Bazel
- How do you generate Python coverage in bazel?
- How do I select the runtime in bazel for Python and pip?
- Code coverage for Python using Bazel 6.0.0
- Installing python packages with extras using Bazel pip_parse
- Bazel: install a python dependency for a genrule
- bazel logging inside of a BUILD file
- How to deal with Bazel grpc transitive dependencies?
- Bazel python proto rules overriding "google" module
- Add required dependencies to py_wheel
- Generating C++ files via py_binary and genrule
- Bazel pip_parse results in repository not defined
- Bazel: running tests against different Python versions
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Use the builtin Starlark
print()function inBUILDor.bzlfiles to dump values Bazel's console.