Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
lalithadevi
/
latest_news_backend_with_cat_pred_similar_news_
like
0
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
lalithadevi
commited on
Mar 9, 2024
Commit
bcc3bd8
·
verified
·
1 Parent(s):
2f5f99d
Create logger.py
Browse files
Files changed (1)
hide
show
logger.py
+7
-0
logger.py
ADDED
Viewed
@@ -0,0 +1,7 @@
1
+
import logging
2
+
3
+
def get_logger():
4
+
FORMAT = '%(asctime)s %(message)s'
5
+
logging.basicConfig(format=FORMAT)
6
+
logger = logging.getLogger('hf_logger')
7
+
return logger