We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecc450d commit 4b2af64Copy full SHA for 4b2af64
examples/logging_filehandler.py
@@ -7,6 +7,7 @@
7
import storage
8
import adafruit_sdcard
9
import adafruit_logging as logging
10
+from adafruit_logging.extensions import FileHandler
11
12
# Get chip select pin depending on the board, this one is for the Feather M4 Express
13
sd_cs = board.D10
@@ -21,7 +22,7 @@
21
22
# Initialize log functionality
23
log_filepath = "/sd/testlog.log"
24
logger = logging.getLogger("testlog")
-file_handler = logging.FileHandler(log_filepath)
25
+file_handler = FileHandler(log_filepath)
26
logger.addHandler(file_handler)
27
logger.setLevel(logging.INFO)
28
0 commit comments