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 14  
15 15 read calexium_lib/database/db_utils.anubis
16 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 19 read mf_constants.anubis
20 20  
... ...
database/migration_common.anubis
... ... @@ -13,7 +13,7 @@ read alter_table.anubis
13 13 read sqlite_foreign_key.anubis
14 14  
15 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 19 public type DbTable:
... ...
mail/send_mail.anubis
... ... @@ -15,10 +15,9 @@ read network/tools.anubis
15 15 read system/files.anubis
16 16 read system/string.anubis
17 17 read system/data_io.anubis
18   -read system/logger.anubis
19 18  
20   -read calexium_lib/net_services_protocols/logger_service.anubis
21 19 read calexium_lib/mail/send_mail_type.anubis
  20 +read calexium_lib/net_services_protocols/logger_client.anubis
22 21  
23 22 read lexers/enhanced_status.anubis
24 23 read smtp_server_extensions.anubis
... ... @@ -210,8 +209,8 @@ public define Result(SmtpClientResult, One)
210 209 param,
211 210 prepare_mail_callback,
212 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 214 handle_result
216 215 ).
217 216  
... ... @@ -239,17 +238,17 @@ public define Result(SmtpClientResult, One)
239 238 {
240 239 failure then
241 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 242 error(error),
244 243  
245 244 success(ip_addr) then
246 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 247 println("send_mail: Trying to connect to "+ip_txt);
249 248 if (Result(NetworkConnectError,RWStream))connect(ip_addr, port) is
250 249 {
251 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 252 error(error),
254 253  
255 254 ok(server_conn) then
... ...
os_tools/freebsd/rc_conf.anubis
... ... @@ -14,7 +14,7 @@ read system/string.anubis
14 14 read tools/basis.anubis
15 15 //read tools/app_loggers.anubis
16 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 19 delete_entry
20 20 find_entry
... ...
web/CXM_dojo.anubis
... ... @@ -15,7 +15,7 @@ read system/logger.anubis
15 15 read calexium_lib/web/CXM_common.anubis
16 16 read calexium_lib/web/CXM_making_a_web_site.anubis
17 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 20 public type Dojo_Grid_Data :
21 21 grid_data(String).
... ...
web/CXM_making_a_web_site.anubis
... ... @@ -3081,7 +3081,7 @@ public define One
3081 3081 String ssl_certificate_common_name,
3082 3082 List(Web_Site) web_sites, // web sites to be started
3083 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 3086 if (Start_Web_Sites_Result)start_web_sites(ip_address,
3087 3087 http_port,
... ... @@ -3090,9 +3090,9 @@ public define One
3090 3090 web_sites,
3091 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  
... ...