WCF REST Service not working with log4net -
i've written wcf rest service uses log4net.
my problem cannot rest service , logging service work simultaneously.
example:
public string test() { //log.debug("test called."); return "xyz"; }
calling method browser @ localhost:49721/myservice/test gives me result: xyz
if uncomment logging row there correct output logfile.
2014-12-16 10:44:56,463 [25] debug myservice - test called.
however, don't receive result rest service, when calling method browser. (using chrome developer tools can see see status "pending".)
any suggestions?
edit 1:
this how initiate logger:
private static readonly ilogger log = logmanager.getlogger(typeof(myservice));
Comments
Post a Comment