GLAbstraction.jl
GLAbstraction.jl copied to clipboard
Add debug
Hi, the proposed changes permit the user to select debug information printout. I made a similar pull request in GLWindow. Only tested in Julia 0.4.
- selection is performed by <CODE>function setDebugLevels(flagOn::Bool,level::Int)</CODE> 2)Level (ORed bit values)
1 | add traceback for constructors and related |
4 | print uniforms |
8 | print vertices |
16 | used for GLTypes.GLVertexArray |
32 | used for postRenderFunctions |
Additional selection of the IO stream for debug output could be added. Will keep a separate addDebug branch for improvements (based for now on my own usage.
Hi sorry for being so slow...Have you looked into Lumberjack.jl for logging? It could probably integrated with a macro and a global switch to completely turn the logging off, and then use lumberjack for the different logging levels.
Hi,
I had not thought about it, I see that it is in the Require list of GLAbstraction, so did you try it? I will give it a try. For now I am redirecting STDERR to reduce the clutter of "Deprecated messages", but could use a better stream. Alain
Yes I experimented with it, but then more important things came up... The branch rebuild is down to zero messages now =) I hope I can integrate it with GLVisualize in the coming days! That really would be a big step!
Best, Simon
2015-03-25 21:22 GMT+01:00 AlainLich [email protected]:
Hi,
I had not thought about it, I see that it is in the Require list of GLAbstraction, so did you try it? I will give it a try. For now I am redirecting STDERR to reduce the clutter of "Deprecated messages", but could use a better stream. Alain
— Reply to this email directly or view it on GitHub https://github.com/JuliaGL/GLAbstraction.jl/pull/12#issuecomment-86202130 .