Esempio n. 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);
                });
            }
Esempio n. 2
0
 public NLogBackendInstance( NLogBackend parent )
 {
     this.parent = parent;
 }
Esempio n. 3
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 );
                                                                                                                                 } );
            }
Esempio n. 4
0
 public NLogBackendInstance(NLogBackend parent)
 {
     this.parent = parent;
 }