File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 11import json as json_lib
22import requests
33import logging
4+ import pathlib
45
56from typing import Dict
67
@@ -32,6 +33,10 @@ def __init__(self, client: object) -> None:
3233 # We can also add custom formatting to our log messages.
3334 log_format = '%(asctime)-15s|%(filename)s|%(message)s'
3435
36+ if not pathlib .Path ('logs' ).exists ():
37+ pathlib .Path ('logs' ).mkdir ()
38+ pathlib .Path ('logs/log_file_custom.log' ).touch ()
39+
3540 self .client : MicrosoftGraphClient = client
3641 logging .basicConfig (
3742 filename = "logs/log_file_custom.log" ,
Original file line number Diff line number Diff line change 1010from ms_graph .search import Search
1111from ms_graph .drives import Drives
1212from ms_graph .groups import Groups
13- from ms_graph .session import GraphSession
1413from ms_graph .drive_items import DriveItems
1514from ms_graph .personal_contacts import PersonalContacts
1615
You can’t perform that action at this time.
0 commit comments