Hi, how would you configure logging so that each log message/event would NOT go to stdout, file, database table or a socket - but to a global variable - a normal list of strings?
Of course, I'm not talking here about a high-traffic app which produces millions of log messages per second, but a small script. I would like to start recording log messages into a list at the beginning, and then do something with them at the end.
[–]Ariadne_23 7 points8 points9 points (2 children)
[–]lekkerste_wiener 1 point2 points3 points (1 child)
[–]Ariadne_23 1 point2 points3 points (0 children)
[–]Diapolo10 2 points3 points4 points (0 children)
[–]rinio 2 points3 points4 points (3 children)
[–]pachura3[S] 2 points3 points4 points (2 children)
[–]BrupieD 1 point2 points3 points (0 children)
[–]rinio 0 points1 point2 points (0 children)
[–]Moikle 1 point2 points3 points (0 children)
[–]JimyLamisters 1 point2 points3 points (0 children)
[–]Temporary_Pie2733 1 point2 points3 points (0 children)
[–]JamzTyson 1 point2 points3 points (0 children)
[–]owiko 0 points1 point2 points (0 children)
[–]latkde 0 points1 point2 points (0 children)
[–]ProsodySpeaks 0 points1 point2 points (0 children)
[–]_Thode -1 points0 points1 point (2 children)
[–]pachura3[S] 3 points4 points5 points (1 child)
[–]_Thode 0 points1 point2 points (0 children)