File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5151$ ./gen_rand.py --config-name=file_config.yaml
5252```
5353
54+ Application logging is configured through Hydra in
55+ ` conf/hydra/job_logging/custom.yaml ` . The script still uses Python's
56+ ` logging.getLogger(__name__) ` , but formatting and log level are controlled
57+ from configuration. For example, to change the root log level:
58+ ``` bash
59+ $ ./gen_rand.py hydra.job_logging.root.level=DEBUG
60+ ```
61+
5462To perform multiple runs with different parameter values:
5563``` bash
5664$ ./gen_rand.py -m distr=uniform,gauss
Original file line number Diff line number Diff line change 22file : false
33defaults :
44 - distr : gauss
5+ - override hydra/job_logging : custom
56 - _self_
Original file line number Diff line number Diff line change 1+ version : 1
2+ formatters :
3+ simple :
4+ format : ' [%(asctime)s][%(name)s][%(levelname)s] %(message)s'
5+ handlers :
6+ console :
7+ class : logging.StreamHandler
8+ formatter : simple
9+ stream : ext://sys.stdout
10+ root :
11+ level : INFO
12+ handlers :
13+ - console
14+ disable_existing_loggers : false
You can’t perform that action at this time.
0 commit comments