← Back to list

use your logger

ever happen when your writing code, and you run it and something happens that you dont undersrand why its not returning what it should, or…

Muhammadkone · 2026-06-20 21:58 · 0 claps · 0.8 min read
#logger #logging #logvariables
Open on Medium ↗

use your logger

ever happen when your writing code, and you run it and something happens that you dont undersrand why its not returning what it should, or at some points of the program its not getting that variable a that you need to pass to function b,

heres when you use your logger,

java: type in Logger name = Logger.getLogger("name") then name.info("variablename") python: type in logging.getLogger(__name__) then logger.info("variablename") javascript: type in console.log("variablename") go: type in log.Println("variablename") php: type in error_log("variablename") i think most of these are correct, i could be wrong with some so confirm nonethless

and what this will do is as your softawre is running it will log what variables you want it to log at each step so you can see for example at line 3 the variable doesnt get stored, and now you know that line 3 is messing up your program


메타데이터
post_id
7ff4d0baa4e4
slug
use-your-logger-7ff4d0baa4e4
url
https://medium.com/@muhammadkonecom/use-your-logger-7ff4d0baa4e4
canonical_url
https://medium.com/@muhammadkonecom/use-your-logger-7ff4d0baa4e4
author_url
https://medium.com/@muhammadkonecom
status
ok
fetched_at
2026-07-11 08:08:22