@@ -51,6 +51,58 @@ public static void Write(int logLevel, string message, string topic)
5151 Write ( message , topic , logLevel ) ;
5252 }
5353
54+ private static void LoggingFunc ( string message , string topic , int logLevel , params string [ ] list )
55+ {
56+ IGXLogger log = GetLogger ( topic ) ;
57+ LogLevel logLvl = ( LogLevel ) logLevel ;
58+
59+ switch ( logLvl )
60+ {
61+ case LogLevel . Off :
62+ break ;
63+ case LogLevel . Trace :
64+ GXLogging . Trace ( log , message , list ) ;
65+ break ;
66+ case LogLevel . Debug :
67+ GXLogging . Debug ( log , message , list ) ;
68+ break ;
69+ case LogLevel . Info :
70+ GXLogging . Info ( log , message , list ) ;
71+ break ;
72+ case LogLevel . Warn :
73+ GXLogging . Warn ( log , message , list ) ;
74+ break ;
75+ case LogLevel . Error :
76+ GXLogging . Error ( log , message , list ) ;
77+ break ;
78+ case LogLevel . Fatal :
79+ GXLogging . Critical ( log , message , list ) ;
80+ break ;
81+ default :
82+ GXLogging . Debug ( log , message , list ) ;
83+ break ;
84+ }
85+ }
86+ public static void Write ( string message , string topic , int logLevel , string propertyvalue1 )
87+ {
88+ LoggingFunc ( message , topic , logLevel , propertyvalue1 ) ;
89+ }
90+ public static void Write ( string message , string topic , int logLevel , string propertyvalue1 , string propertyvalue2 )
91+ {
92+ LoggingFunc ( message , topic , logLevel , propertyvalue1 , propertyvalue2 ) ;
93+ }
94+ public static void Write ( string message , string topic , int logLevel , string propertyvalue1 , string propertyvalue2 , string propertyvalue3 )
95+ {
96+ LoggingFunc ( message , topic , logLevel , propertyvalue1 , propertyvalue2 , propertyvalue3 ) ;
97+ }
98+ public static void Write ( string message , string topic , int logLevel , string propertyvalue1 , string propertyvalue2 , string propertyvalue3 , string propertyvalue4 )
99+ {
100+ LoggingFunc ( message , topic , logLevel , propertyvalue1 , propertyvalue2 , propertyvalue3 , propertyvalue4 ) ;
101+ }
102+ public static void Write ( string message , string topic , int logLevel , string propertyvalue1 , string propertyvalue2 , string propertyvalue3 , string propertyvalue4 , string propertyvalue5 )
103+ {
104+ LoggingFunc ( message , topic , logLevel , propertyvalue1 , propertyvalue2 , propertyvalue3 , propertyvalue4 , propertyvalue5 ) ;
105+ }
54106 public static void Write ( string message , string topic , int logLevel )
55107 {
56108 IGXLogger log = GetLogger ( topic ) ;
0 commit comments