Beispiel #1
0
            public NLogCategoryBuilder(NLogBackend parent, string categoryName)
            {
                this.parent = parent;

                this.loggerField = this.parent.loggingImplementation.GetCategoryField(categoryName, this.parent.loggerType, writer =>
                {
                    writer.EmitInstructionString(OpCodeNumber.Ldstr, categoryName);
                    writer.EmitInstructionMethod(OpCodeNumber.Call, this.parent.categoryInitializerMethod);
                });
            }
 public NLogBackendInstance( NLogBackend parent )
 {
     this.parent = parent;
 }
            public NLogCategoryBuilder( NLogBackend parent, string categoryName )
            {
                this.parent = parent;

                this.loggerField = this.parent.loggingImplementation.GetCategoryField( categoryName, this.parent.loggerType, writer =>
                                                                                                                                 {
                                                                                                                                     writer.
                                                                                                                                         EmitInstructionString(
                                                                                                                                             OpCodeNumber.Ldstr,
                                                                                                                                             categoryName );
                                                                                                                                     writer.
                                                                                                                                         EmitInstructionMethod(
                                                                                                                                             OpCodeNumber.Call,
                                                                                                                                             this.parent.
                                                                                                                                                 categoryInitializerMethod );
                                                                                                                                 } );
            }
Beispiel #4
0
 public NLogBackendInstance(NLogBackend parent)
 {
     this.parent = parent;
 }