.net - Using Microsoft Enterprise Library 5.0 Logging Provider for Service Stack -


i have project based on servicestack framework , want use logging provider microsoft enterprise library 5.0, here steps followed:

(1) installed service logging provider ms enterprise library 5.0: install-package servicestack.logging.enterpriselibrary5

(2) created file entlib.config in project content https://github.com/servicestack/servicestack.logging/blob/master/tests/servicestack.logging.tests/entlib5.test.config

(3) in service app host configured logfactory use entlib5factroy:

 public override void configure(funq.container container)  {      logmanager.logfactory = new entlib5factory(<path-to-above-entlib.config-file>);      setconfig(new endpointhostconfig(debugmode = true });  } 

after launching application can see error:

server error in '/' application.


the debugformat method not supported. modify log message format using formatter in loggingconfiguration section. description: unhandled exception occurred during execution of current web request. please review stack trace more information error , originated in code.

exception details: system.notsupportedexception: debugformat method not supported. modify log message format using formatter in loggingconfiguration section.

source error: unhandled exception generated during execution of current web request. information regarding origin , location of exception can identified using exception stack trace below.

stack trace:

[notsupportedexception: debugformat method not supported. modify log message format using formatter in loggingconfiguration section.] servicestack.logging.entlib5.entlib5logger.debugformat(string format, object[] args) +96 servicestack.webhost.endpoints.support.httphandlerbase.processrequest(httpcontext context) +322 system.web.callhandlerexecutionstep.system.web.httpapplication.iexecutionstep.execute() +100 system.web.httpapplication.executestep(iexecutionstep step, boolean& completedsynchronously) +75


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -