[dba-VB] NLog making progress

Mark Breen marklbreen at gmail.com
Mon Jul 26 05:43:53 CDT 2010


Hello John,

When I read this email, I recalled the hazy, easy days of Glen Grubb and the
ggCC error handler.  Oh, how life was easy back then :)

Mark



On 24 July 2010 15:41, jwcolby <jwcolby at colbyconsulting.com> wrote:

> OK, so it appears that I am making progress.  I found an online tutorial
>
> http://nlog-project.org/wiki/Tutorial#Installing_NLog
>
> which got me set up and working on one project.
>
> Basically after referencing in the project and using in the class, I insert
> something like:
>
>         Logger nlog = LogManager.GetLogger("clsAZLog");
>
> in the header of each class.
>
> My question is, is there any syntax that could give me the name of the
> class?  IOW:
>
>         Logger nlog = LogManager.GetLogger(SomeObject.Name);
>
> where SomeObject is the class itself.  The objective to be just cutting and
> pasting a single
> identical line in the header of each class.
>
> --
> John W. Colby
> www.ColbyConsulting.com
> _______________________________________________
> dba-VB mailing list
> dba-VB at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/dba-vb
> http://www.databaseadvisors.com
>
>



More information about the dba-VB mailing list