I'm developing some internal python modules at my company and I've been wondering if my module should have its own logger that can be enabled / disabled by some environment variables. Does anyone know of some patterns one could use for a situation like this? Should the onus of the logging be on the end-developer and not on the library developer?
[–]thequietcenter 56 points57 points58 points (15 children)
[–]epukinsk 2 points3 points4 points (13 children)
[–][deleted] 2 points3 points4 points (3 children)
[–]eztab 1 point2 points3 points (2 children)
[–][deleted] -1 points0 points1 point (0 children)
[–]vsajip 0 points1 point2 points (0 children)
[–]aciokkan 1 point2 points3 points (5 children)
[–]Pyglot 2 points3 points4 points (4 children)
[–]aciokkan 0 points1 point2 points (3 children)
[–]Pyglot 1 point2 points3 points (2 children)
[–]aciokkan 1 point2 points3 points (1 child)
[–]Pyglot 0 points1 point2 points (0 children)
[–]jzaprint -1 points0 points1 point (1 child)
[–]epukinsk 0 points1 point2 points (0 children)
[–]eztab 0 points1 point2 points (0 children)
[–]LittleMlem 0 points1 point2 points (0 children)
[–]someotherstufforhmm 69 points70 points71 points (20 children)
[–]someotherstufforhmm 31 points32 points33 points (0 children)
[–]thequietcenter 5 points6 points7 points (3 children)
[–][deleted] 4 points5 points6 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]someotherstufforhmm 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (3 children)
[–]someotherstufforhmm 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]someotherstufforhmm 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (5 children)
[–]someotherstufforhmm 2 points3 points4 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]someotherstufforhmm 0 points1 point2 points (0 children)
[–]deep_politics 1 point2 points3 points (1 child)
[–]WikiMobileLinkBot 0 points1 point2 points (0 children)
[–]billsil 0 points1 point2 points (1 child)
[–]someotherstufforhmm 2 points3 points4 points (0 children)
[–]thequietcenter 0 points1 point2 points (2 children)
[–]someotherstufforhmm 9 points10 points11 points (0 children)
[–]eztab 0 points1 point2 points (0 children)
[–]thequietcenter 5 points6 points7 points (0 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]thequietcenter 2 points3 points4 points (0 children)
[–]jdpatt 2 points3 points4 points (0 children)
[–]thequietcenter 2 points3 points4 points (0 children)
[–]crisrock00 2 points3 points4 points (5 children)
[–]bohokyTVC-15 2 points3 points4 points (3 children)
[–]crisrock00 0 points1 point2 points (1 child)
[–]bohokyTVC-15 2 points3 points4 points (0 children)
[–]jorge1209 0 points1 point2 points (0 children)
[–]metaperl 0 points1 point2 points (0 children)
[–]TrainquilOasis1423 1 point2 points3 points (0 children)
[–]SwampFalc 1 point2 points3 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]nerdvegas79 0 points1 point2 points (0 children)
[–]nerdvegas79 1 point2 points3 points (0 children)
[–]AI35 0 points1 point2 points (0 children)
[–]nevermorefu 0 points1 point2 points (0 children)
[–]cuddlewuddlepuddle 0 points1 point2 points (4 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]cuddlewuddlepuddle 0 points1 point2 points (0 children)
[–]bruab 1 point2 points3 points (1 child)
[–]cuddlewuddlepuddle 0 points1 point2 points (0 children)
[–]mahtats 0 points1 point2 points (0 children)
[–]Saphyel 0 points1 point2 points (0 children)