I want to open a file say python.txt and want to create a log file say logpy.log for the python.txt so as to record what time the python.txt was opend , closed , if the file crashed error like all the data should be inside the logpy.log file , how to write it, please provide an example like this.
I was wondering how to efficiently send log messages from a containeried Python application to the logging feature of Docker. Already using the logging/logger library for Python so the solution only requires a small change to redirect the output to STDOUT instead of a named file. Thanks.
@@DevOpsJourney yes, and it was relatively easy thanks to a feature in Python's core logging library. Not sure how I overlooked this feature of a library that I was already using for the project.
It's up to you! If if think the message is an error or critical, set it to that. If you think it's just informational then set it to info. Hope this helped
tis is a good video that is spoiled by the coding being almost impossible to see. Please, videographers, MAGNIFY the coding. It's the difference between doing a great job and just wasting your precious time.
Thanks for the honest feedback. I really needed to improve my audio back when I started recording. My most recent videos should have good audio. Thanks again for watching and your feedback!
Thanks for the video. I found it helpful. One note - the sound seems to shift around - like your microphone was moving, or loose?
Thanks for great tutorial..Please guide, how can we set different color for Time and Date only shown logging console.?
This might be helpfull: ruclips.net/video/JrGFQp9njas/видео.html
That's an awesome video. Could you please me out how to print colored logging messages on the console?
Like Red-colored message for Critical/Error Log
Thank You. I figured it out, used the coloroma package :)
I want to open a file say python.txt and want to create a log file say logpy.log for the python.txt so as to record what time the python.txt was opend , closed , if the file crashed error like all the data should be inside the logpy.log file , how to write it, please provide an example like this.
I was wondering how to efficiently send log messages from a containeried Python application to the logging feature of Docker. Already using the logging/logger library for Python so the solution only requires a small change to redirect the output to STDOUT instead of a named file. Thanks.
Hey Gregory, did you find a solution to your problem?
@@DevOpsJourney yes, and it was relatively easy thanks to a feature in Python's core logging library. Not sure how I overlooked this feature of a library that I was already using for the project.
thanks man, well explained!!
How to create external log files to see which test cases passed and which failed and share the report with a boss?
Thank you guy! very useful and helpful tutorial
Glad it was helpful!
Audio gets better at 0:26
Ok
More efficient f-strings are here for a while, even 2 years ago. Why still $s?
I use both, but prefer f-strings like you mentioned
the audio got me drunk
😂😂😂
How to know where to use what level?
It's up to you! If if think the message is an error or critical, set it to that. If you think it's just informational then set it to info. Hope this helped
@@DevOpsJourney along with logs what others are required for a project that must included.
@@DevOpsJourney Thanks for the fast reply. ❤️ The video.
thanks a million !!!
tis is a good video that is spoiled by the coding being almost impossible to see. Please, videographers, MAGNIFY the coding. It's the difference between doing a great job and just wasting your precious time.
great and simple!
Bro, great explanation but the audio completely ruined it.
Sorry man! Made this video when I was new to recording. Improved my setup since then. Thank you so much for the feedback.
too small to see without a magnifying glass.
🤣🤣
Content was fine and done well, but the shift in sound removes your professionalism. It turned a ten star video to a five.
Thanks for the honest feedback. I really needed to improve my audio back when I started recording. My most recent videos should have good audio.
Thanks again for watching and your feedback!