Commit cfcf018e648b09b76a6ffeefaf47e0cb5b5bd92e

Authored by David RENÉ
1 parent 9510293f

remove dependency to logger_service

database/migration.anubis
@@ -14,7 +14,7 @@ read data_base/db_tools.anubis @@ -14,7 +14,7 @@ read data_base/db_tools.anubis
14 14
15 read calexium_lib/database/db_utils.anubis 15 read calexium_lib/database/db_utils.anubis
16 read calexium_lib/database/alter_table.anubis 16 read calexium_lib/database/alter_table.anubis
17 -read calexium_lib/net_services_protocols/logger_service.anubis 17 +//read calexium_lib/net_services_protocols/logger_service.anubis
18 18
19 read mf_constants.anubis 19 read mf_constants.anubis
20 20
database/migration_common.anubis
@@ -13,7 +13,7 @@ read alter_table.anubis @@ -13,7 +13,7 @@ read alter_table.anubis
13 read sqlite_foreign_key.anubis 13 read sqlite_foreign_key.anubis
14 14
15 read calexium_lib/database/db_utils.anubis 15 read calexium_lib/database/db_utils.anubis
16 -read calexium_lib/net_services_protocols/logger_service.anubis 16 +//read calexium_lib/net_services_protocols/logger_service.anubis
17 17
18 18
19 public type DbTable: 19 public type DbTable:
mail/send_mail.anubis
@@ -15,10 +15,9 @@ read network/tools.anubis @@ -15,10 +15,9 @@ read network/tools.anubis
15 read system/files.anubis 15 read system/files.anubis
16 read system/string.anubis 16 read system/string.anubis
17 read system/data_io.anubis 17 read system/data_io.anubis
18 -read system/logger.anubis  
19 18
20 -read calexium_lib/net_services_protocols/logger_service.anubis  
21 read calexium_lib/mail/send_mail_type.anubis 19 read calexium_lib/mail/send_mail_type.anubis
  20 +read calexium_lib/net_services_protocols/logger_client.anubis
22 21
23 read lexers/enhanced_status.anubis 22 read lexers/enhanced_status.anubis
24 read smtp_server_extensions.anubis 23 read smtp_server_extensions.anubis
@@ -210,8 +209,8 @@ public define Result(SmtpClientResult, One) @@ -210,8 +209,8 @@ public define Result(SmtpClientResult, One)
210 param, 209 param,
211 prepare_mail_callback, 210 prepare_mail_callback,
212 (Int _) |-> unique, 211 (Int _) |-> unique,
213 - (LogLevel level, String txt) |-> if level is logTrace then logTrace(send_mail_log, send_mail_mask, txt)  
214 - else log(level, send_mail_log, txt), 212 + (LogLevel level, String txt) |-> if level is logTrace then logTrace(send_mail_log, send_mail_log, send_mail_mask, txt)
  213 + else log(send_mail_log, level, send_mail_log, txt),
215 handle_result 214 handle_result
216 ). 215 ).
217 216
@@ -239,17 +238,17 @@ public define Result(SmtpClientResult, One) @@ -239,17 +238,17 @@ public define Result(SmtpClientResult, One)
239 { 238 {
240 failure then 239 failure then
241 println("IP address NOT found for Mail server ["+server+"]"); 240 println("IP address NOT found for Mail server ["+server+"]");
242 - logWarning(send_mail_log,"IP address NOT found for Mail server ["+server+"]"); 241 + logWarning(send_mail_log, send_mail_log,"IP address NOT found for Mail server ["+server+"]");
243 error(error), 242 error(error),
244 243
245 success(ip_addr) then 244 success(ip_addr) then
246 with ip_txt = ip_addr_to_string(ip_addr), 245 with ip_txt = ip_addr_to_string(ip_addr),
247 - logTrace(send_mail_log, send_mail_mask, "send_mail: Trying to connect to "+ip_txt); 246 + logTrace(send_mail_log, send_mail_log, send_mail_mask, "send_mail: Trying to connect to "+ip_txt);
248 println("send_mail: Trying to connect to "+ip_txt); 247 println("send_mail: Trying to connect to "+ip_txt);
249 if (Result(NetworkConnectError,RWStream))connect(ip_addr, port) is 248 if (Result(NetworkConnectError,RWStream))connect(ip_addr, port) is
250 { 249 {
251 error(e) then 250 error(e) then
252 - logTrace(send_mail_log, send_mail_mask, "send_mail: Can't connect to "+ip_txt); 251 + logTrace(send_mail_log, send_mail_log, send_mail_mask, "send_mail: Can't connect to "+ip_txt);
253 error(error), 252 error(error),
254 253
255 ok(server_conn) then 254 ok(server_conn) then
os_tools/freebsd/rc_conf.anubis
@@ -14,7 +14,7 @@ read system/string.anubis @@ -14,7 +14,7 @@ read system/string.anubis
14 read tools/basis.anubis 14 read tools/basis.anubis
15 //read tools/app_loggers.anubis 15 //read tools/app_loggers.anubis
16 read tools/streams.anubis 16 read tools/streams.anubis
17 -read calexium_lib/net_services_protocols/logger_service.anubis 17 +//read calexium_lib/net_services_protocols/logger_service.anubis
18 18
19 delete_entry 19 delete_entry
20 find_entry 20 find_entry
web/CXM_dojo.anubis
@@ -15,7 +15,7 @@ read system/logger.anubis @@ -15,7 +15,7 @@ read system/logger.anubis
15 read calexium_lib/web/CXM_common.anubis 15 read calexium_lib/web/CXM_common.anubis
16 read calexium_lib/web/CXM_making_a_web_site.anubis 16 read calexium_lib/web/CXM_making_a_web_site.anubis
17 read calexium_lib/web/CXM_multihost_http_server.anubis 17 read calexium_lib/web/CXM_multihost_http_server.anubis
18 -read calexium_lib/net_services_protocols/logger_service.anubis 18 + read calexium_lib/net_services_protocols/logger_service.anubis
19 19
20 public type Dojo_Grid_Data : 20 public type Dojo_Grid_Data :
21 grid_data(String). 21 grid_data(String).
web/CXM_making_a_web_site.anubis
@@ -3081,7 +3081,7 @@ public define One @@ -3081,7 +3081,7 @@ public define One
3081 String ssl_certificate_common_name, 3081 String ssl_certificate_common_name,
3082 List(Web_Site) web_sites, // web sites to be started 3082 List(Web_Site) web_sites, // web sites to be started
3083 (One) -> Bool shutdown_required, 3083 (One) -> Bool shutdown_required,
3084 - Logger log //logger where to report the error 3084 + (LogLevel, String) -> One logger //logger where to report the error
3085 )= 3085 )=
3086 if (Start_Web_Sites_Result)start_web_sites(ip_address, 3086 if (Start_Web_Sites_Result)start_web_sites(ip_address,
3087 http_port, 3087 http_port,
@@ -3090,9 +3090,9 @@ public define One @@ -3090,9 +3090,9 @@ public define One
3090 web_sites, 3090 web_sites,
3091 shutdown_required) is 3091 shutdown_required) is
3092 { 3092 {
3093 - cannot_bind_to_port(n) then logError(log, "Cannot bind to port: "+n),  
3094 - cannot_bind_to_port(n,m) then logError(log, "Cannot bind to ports: "+n+", "+m),  
3095 - ok(s1,s2) then logInfo(log, "Servers started on ports "+http_port+" (HTTP) and "+https_port+" (HTTPS).") 3093 + cannot_bind_to_port(n) then logger(logError, "Cannot bind to port: "+n),
  3094 + cannot_bind_to_port(n,m) then logger(logError, "Cannot bind to ports: "+n+", "+m),
  3095 + ok(s1,s2) then logger(logInfo, "Servers started on ports "+http_port+" (HTTP) and "+https_port+" (HTTPS).")
3096 }. 3096 }.
3097 3097
3098 3098