Comments (6)
# define AXLOG(format, ...) ax::print(format, ##__VA_ARGS__) # define AXLOGERROR(format, ...) ax::print(format, ##__VA_ARGS__) # define AXLOGINFO(format, ...) ax::print(format, ##__VA_ARGS__) # define AXLOGWARN(...) __AXLOGWITHFUNCTION(__VA_ARGS__)they are present only for compatibility purpose, and DEPRECATED.
relative PR: #2017
from axmol.
I think logging should be removed in release builds by default with an optional opt-in. One way would be to add AX_USE_LOGGING
CMake option and something like:
#if !defined(AX_USE_LOGGING)
#if _AX_DEBUG > 0
#define AX_USE_LOGGING 1
#endif
#endif
Ignoring the default values I recommend using enabling logic like AX_USE_LOGGING
instead of the disabling like AX_STRIP_DEBUG_LOGGING
to avoid double negatives.
Btw, it's possible to workaround this by setting custom null logger using setLogOutput()
from axmol.
Btw, it's possible to workaround this by setting custom null logger using
setLogOutput()
That won't work in this case, since we still need output from AXLOGI/AXOGW/AXLOGE
in release builds (depending on the output level set), and I don't want the debug logging calls to remain in the output executable.
I'll sort out a PR for this in the next few days.
from axmol.
Ah, I missed that you're talking specifically about debug and verbose levels only...
Btw, just found that there are more of these:
# define AXLOG(format, ...) ax::print(format, ##__VA_ARGS__)
# define AXLOGERROR(format, ...) ax::print(format, ##__VA_ARGS__)
# define AXLOGINFO(format, ...) ax::print(format, ##__VA_ARGS__)
# define AXLOGWARN(...) __AXLOGWITHFUNCTION(__VA_ARGS__)
Is there a reason why they don't use AXLOG_WITH_LEVEL()
? And now they are inconsistent with AXLOGX()
macros in respect of what gets enabled for debug/release builds.
from axmol.
Is there a reason why they don't use
AXLOG_WITH_LEVEL()
? And now they are inconsistent withAXLOGX()
macros in respect of what gets enabled for debug/release builds.
I don't know why they were left in there as they are, but perhaps @halx99 can provide an answer to that question.
from axmol.
# define AXLOG(format, ...) ax::print(format, ##__VA_ARGS__) # define AXLOGERROR(format, ...) ax::print(format, ##__VA_ARGS__) # define AXLOGINFO(format, ...) ax::print(format, ##__VA_ARGS__) # define AXLOGWARN(...) __AXLOGWITHFUNCTION(__VA_ARGS__)
they are present only for compatibility purpose, and DEPRECATED.
from axmol.
Related Issues (20)
- compiler errors with AX_EXT_HINT and lua
- Clipping issue with different child stencils HOT 2
- New project from template - compilation hangs indefinitely HOT 13
- HSL Video - Assertion failed: (_videoRotation % 180 == 0 ? YASIO_SZ_ALIGN(videoDim.x, 32) HOT 1
- Yasio uses double newline in logs
- Axmol keeps printing logs if custom logger is set with `setLogOutput()`
- `AUDIO_LOG` should be routed through Axmol's log system
- Cannot capture a layout: issue with RenderTexture?
- Cannot Capture a ScrollView: Issue with RenderTexture? HOT 6
- Font rendered as white boxes HOT 10
- Downloader fails if filename with tmp extension already exists HOT 2
- zlib download path. HOT 2
- Android Webview loadData call error function HOT 2
- Rename all AXLOG to AXLOGD (there be 417 without .\core) HOT 3
- JobSystem creates too many threads HOT 3
- ax::ui::WebView cannot display local image HOT 5
- Bug in FreeType lib for certain fonts HOT 1
- macOS Edit wrong alignment
- FastRNG seems to have problematic implementation HOT 30
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from axmol.