http://www.dotnetjunkies.com/WebLog/sajay/archive/2005/03/11/60012.aspx

private static log4net.ILog log =
 log4net.LogManager.GetLogger(Class.ToType(Program.class));

--- David Thielen <[EMAIL PROTECTED]> wrote:

> Hi;
> 
>  
> 
> I'm able to call log4net from J#. But how should I get my Ilog
> object? There
> is no Type attribute in J#.
> 
>  
> 
> This works:
> 
> private static log4net.ILog log =
> log4net.LogManager.GetLogger("Program");
> 
>  
> 
> But I would like something like:
> 
> private static log4net.ILog log =
> log4net.LogManager.GetLogger(Program.class);
> 
>  
> 
> Thanks - dave
> 
>  
> 
> 

Reply via email to