-
September 3rd, 2020, 11:22 PM
#1
Log4NetLogging issue
In your demo for DotNet client 4.0.0, there is some code in the Log4NetLogging.cs file as follows
public ILogger GetLogger(string category)
{
lock (logInstances)
{
if (!logInstances.ContainsKey(category))
{
logInstances[category] = new Log4NetLoggerWrapper(log4net.LogManager.GetLogger( category));
I get a compile error on this last line for GetLogger(category) saying "cannot convert 'string' to 'System.Type'".
If I replace "category" in the call with a made-up Type argument, the Demo runs. I think I'm connected correctly, because I can send a log record to the console or the log file from my program. I notice that the config file only defines WARN level responses and no Appenders. This makes me wonder if I need to worry about this. Is it OK for me to continue without Log4Net logging?
Last edited by Chuck; September 3rd, 2020 at 11:30 PM.
Similar Threads
-
By Mone in forum Client SDKs
Replies: 0
Last Post: October 22nd, 2007, 10:20 AM
-
By Mone in forum Client SDKs
Replies: 0
Last Post: February 9th, 2007, 01:35 PM
-
By CitiMan in forum Client SDKs
Replies: 2
Last Post: November 21st, 2006, 01:55 PM
-
By Mone in forum Client SDKs
Replies: 0
Last Post: November 9th, 2006, 04:12 PM
-
By Mone in forum Client SDKs
Replies: 0
Last Post: November 7th, 2006, 11:24 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 01:08 PM.
Bookmarks