//*********************************************************************** //* pj_log() * //*********************************************************************** public static void pj_log(projCtx ctx, PJ_LOG level, string format, params object[] args) { if (level > ctx.debug_level) { return; } ctx.logger(ctx.app_data, level, string.Format(format, args)); }
//*********************************************************************** //* pj_stderr_logger() * //*********************************************************************** public static void pj_stderr_logger(object app_data, PJ_LOG level, string msg) { Console.Error.WriteLine(msg); }
//*********************************************************************** //* pj_ctx_set_debug() * //*********************************************************************** public static void pj_ctx_set_debug(projCtx ctx, PJ_LOG debug) { ctx.debug_level=debug; }
//*********************************************************************** //* pj_log() * //*********************************************************************** public static void pj_log(projCtx ctx, PJ_LOG level, string format, params object[] args) { if(level>ctx.debug_level) return; ctx.logger(ctx.app_data, level, string.Format(format, args)); }
//*********************************************************************** //* pj_ctx_set_debug() * //*********************************************************************** public static void pj_ctx_set_debug(projCtx ctx, PJ_LOG debug) { ctx.debug_level = debug; }