I am unable to log exceptions or information using inbuilt logging in supersocket

Feb 27, 2016 at 6:11 AM
I am using custom protocol and i have devloped setup for it. and want to log information or exception using in built logging but i am unable to do it. i have included log4net.cofig and given
reference to log4.net.dll and utilized fallowing code for logging what else wrong am i doing
any suggestions please..
 public override void ExecuteCommand(CustomProtocolSession session, BinaryRequestInfo requestInfo)
        {
            session.Send(Encoding.ASCII.GetString(requestInfo.Body) + Environment.NewLine);
            session.Logger.Error(Encoding.ASCII.GetString(requestInfo.Body));
        }