Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
Duplicated from
lalithadevi/latest_news_backend_with_cat_pred
lalithadevi
/
latest_news_backend_with_cat_pred_similar_news
like
0
Running
App
Files
Files
Community
lalithadevi
commited on
Mar 9
Commit
bcc3bd8
•
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