Skip to content

Commit

Permalink
ADD: yaml for logger
Browse files Browse the repository at this point in the history
Signed-off-by: naweedkhan <naweed.khan@ibm.com>
  • Loading branch information
NaweedAghmad committed Nov 30, 2023
1 parent b0a638e commit c0f6332
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
36 changes: 36 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
version: 1

formatters:
simple:
style: "{"
format: '{asctime} - {name} - {levelname} - {message}'
stamped:
style: "{"
format: '{asctime} - {levelname} - {message}'
clean:
style: '{'
format: '{message}'
handlers:
console:
class: logging.StreamHandler
level: INFO
formatter: simple
stream: ext://sys.stdout
file:
class: logging.FileHandler
formatter: clean
filename: 'lnn_info.log'


loggers:
consoleLogger:
level: DEBUG
handlers: [console]
propagate: no
lnn_info:
level: INFO
handlers: [file]
propagate: no
root:
level: DEBUG
handlers: [console]
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ setuptools>=65.5.1
tabulate
torch==1.13.1
tqdm==4.50.2
pyyaml

0 comments on commit c0f6332

Please sign in to comment.