public static void InitSampleInPageAppender(string elementId) { var container = HtmlContext.window.document.getElementById(elementId); var appender = new log4javascript.InPageAppender(elementId.As<HtmlElement>(), false, false, true, container.clientWidth.As<JsString>(), container.clientHeight.As<JsString>()); var log = log4javascript.log4javascriptContext.getDefaultLogger(); log.addAppender(appender); }
public static void InitSampleInPageAppender(string elementId) { var container = HtmlContext.window.document.getElementById(elementId); var appender = new log4javascript.InPageAppender(elementId.As <HtmlElement>(), false, false, true, container.clientWidth.As <JsString>(), container.clientHeight.As <JsString>()); var log = log4javascript.log4javascriptContext.getDefaultLogger(); log.addAppender(appender); }