forked from ray-project/ray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Data] Configure logging with YAML file (ray-project#44440)
Configuring logging with a YAML file confers some advantages over configuring logging with Python: - It's easier to configure (we don't need to touch source code) - Currently, configuration is included in the Ray wheel. Later on, however, we can download configuration files at runtime. This'd let us change logging behavior without requiring us to rebuild wheels or images. --------- Signed-off-by: Balaji Veeramani <[email protected]>
- Loading branch information
1 parent
01d975e
commit 173d658
Showing
6 changed files
with
111 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
version: 1 | ||
disable_existing_loggers: False | ||
|
||
formatters: | ||
ray: | ||
format: "%(asctime)s\t%(levelname)s %(filename)s:%(lineno)s -- %(message)s" | ||
|
||
handlers: | ||
file: | ||
class: ray.data._internal.logging.SessionFileHandler | ||
formatter: ray | ||
filename: ray-data.log | ||
console: | ||
class: ray._private.log.PlainRayHandler | ||
formatter: ray | ||
level: INFO | ||
|
||
loggers: | ||
ray.data: | ||
level: DEBUG | ||
handlers: [file, console] | ||
propagate: False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters