@@ -114,7 +114,7 @@ internal static void OnUserInputEnd() {
114114 LogManager . ReconfigExistingLoggers ( ) ;
115115 }
116116
117- internal static void LogGenericError ( string message , string botName = "Main" , [ CallerMemberName ] string previousMethodName = null ) {
117+ internal static void LogGenericError ( string message , string botName = Program . ASF , [ CallerMemberName ] string previousMethodName = null ) {
118118 if ( string . IsNullOrEmpty ( message ) ) {
119119 LogNullError ( nameof ( message ) , botName ) ;
120120 return ;
@@ -123,7 +123,7 @@ internal static void LogGenericError(string message, string botName = "Main", [C
123123 Logger . Error ( $ "{ botName } |{ previousMethodName } () { message } ") ;
124124 }
125125
126- internal static void LogGenericException ( Exception exception , string botName = "Main" , [ CallerMemberName ] string previousMethodName = null ) {
126+ internal static void LogGenericException ( Exception exception , string botName = Program . ASF , [ CallerMemberName ] string previousMethodName = null ) {
127127 if ( exception == null ) {
128128 LogNullError ( nameof ( exception ) , botName ) ;
129129 return ;
@@ -132,7 +132,7 @@ internal static void LogGenericException(Exception exception, string botName = "
132132 Logger . Error ( exception , $ "{ botName } |{ previousMethodName } ()") ;
133133 }
134134
135- internal static void LogFatalException ( Exception exception , string botName = "Main" , [ CallerMemberName ] string previousMethodName = null ) {
135+ internal static void LogFatalException ( Exception exception , string botName = Program . ASF , [ CallerMemberName ] string previousMethodName = null ) {
136136 if ( exception == null ) {
137137 LogNullError ( nameof ( exception ) , botName ) ;
138138 return ;
@@ -141,7 +141,7 @@ internal static void LogFatalException(Exception exception, string botName = "Ma
141141 Logger . Fatal ( exception , $ "{ botName } |{ previousMethodName } ()") ;
142142 }
143143
144- internal static void LogGenericWarning ( string message , string botName = "Main" , [ CallerMemberName ] string previousMethodName = null ) {
144+ internal static void LogGenericWarning ( string message , string botName = Program . ASF , [ CallerMemberName ] string previousMethodName = null ) {
145145 if ( string . IsNullOrEmpty ( message ) ) {
146146 LogNullError ( nameof ( message ) , botName ) ;
147147 return ;
@@ -150,7 +150,7 @@ internal static void LogGenericWarning(string message, string botName = "Main",
150150 Logger . Warn ( $ "{ botName } |{ previousMethodName } () { message } ") ;
151151 }
152152
153- internal static void LogGenericInfo ( string message , string botName = "Main" , [ CallerMemberName ] string previousMethodName = null ) {
153+ internal static void LogGenericInfo ( string message , string botName = Program . ASF , [ CallerMemberName ] string previousMethodName = null ) {
154154 if ( string . IsNullOrEmpty ( message ) ) {
155155 LogNullError ( nameof ( message ) , botName ) ;
156156 return ;
@@ -160,7 +160,7 @@ internal static void LogGenericInfo(string message, string botName = "Main", [Ca
160160 }
161161
162162 [ SuppressMessage ( "ReSharper" , "ExplicitCallerInfoArgument" ) ]
163- internal static void LogNullError ( string nullObjectName , string botName = "Main" , [ CallerMemberName ] string previousMethodName = null ) {
163+ internal static void LogNullError ( string nullObjectName , string botName = Program . ASF , [ CallerMemberName ] string previousMethodName = null ) {
164164 if ( string . IsNullOrEmpty ( nullObjectName ) ) {
165165 return ;
166166 }
@@ -170,7 +170,7 @@ internal static void LogNullError(string nullObjectName, string botName = "Main"
170170
171171 [ Conditional ( "DEBUG" ) ]
172172 [ SuppressMessage ( "ReSharper" , "UnusedMember.Global" ) ]
173- internal static void LogGenericDebug ( string message , string botName = "Main" , [ CallerMemberName ] string previousMethodName = null ) {
173+ internal static void LogGenericDebug ( string message , string botName = Program . ASF , [ CallerMemberName ] string previousMethodName = null ) {
174174 if ( string . IsNullOrEmpty ( message ) ) {
175175 LogNullError ( nameof ( message ) , botName ) ;
176176 return ;
0 commit comments