MCPcopy Create free account
hub / github.com/IIIImmmyyy/frida-il2cppDumper / logColor

Function logColor

_agent.js:3142–3169  ·  view source on GitHub ↗
(message, type)

Source from the content-addressed store, hash-verified

3140}
3141exports.logHHexLength = logHHexLength;
3142function logColor(message, type) {
3143 if (DEBUG) {
3144 log4Android(message);
3145 return;
3146 }
3147 if (INTOOLS) {
3148 log(message);
3149 return;
3150 }
3151 if (type == undefined) {
3152 log(message);
3153 return;
3154 }
3155 switch (type) {
3156 case exports.LogColor.WHITE:
3157 log(message);
3158 break;
3159 case exports.LogColor.RED:
3160 console.error(message);
3161 break;
3162 case exports.LogColor.YELLOW:
3163 console.warn(message);
3164 break;
3165 default:
3166 console.log("\x1b[" + type + "m" + message + "\x1b[0m");
3167 break;
3168 }
3169}
3170exports.logColor = logColor;
3171exports.LogColor = {
3172 WHITE: 0,

Callers

nothing calls this directly

Calls 2

log4AndroidFunction · 0.85
logFunction · 0.85

Tested by

no test coverage detected