Browse Source

n2o_io to n4u_io

221V 3 years ago
parent
commit
e917049ce6
3 changed files with 21 additions and 16 deletions
  1. 1 1
      ebin/n4u.app
  2. 0 15
      src/handlers/n2o_io.erl
  3. 20 0
      src/handlers/n4u_io.erl

+ 1 - 1
ebin/n4u.app

@@ -2,7 +2,7 @@
   {description, "N4U WebSocket Application Server"},
   {vsn, "4.4.20"},
   {applications, [kernel, stdlib, asn1, public_key, ssl, crypto, ranch, cowboy, fs, active, sh, gproc, nitro]},
-  {modules, [n2o, n4u_app, n4u_sup, n4u_async, n2o_xhr, n4u_cx, n2o_cowboy, n2o_multipart, n2o_static, n2o_stream, n4u_document, n2o_proto, n2o_relay, n4u_error, n2o_io, n2o_log, n2o_mq, n2o_pickle, n2o_query, n2o_secret, n2o_session, n2o_syn, n4u_client, n2o_file, n4u_heart, n4u_http, n2o_nitrogen, n2o_text, wf, wf_convert, wf_utils]},
+  {modules, [n2o, n4u_app, n4u_sup, n4u_async, n2o_xhr, n4u_cx, n2o_cowboy, n2o_multipart, n2o_static, n2o_stream, n4u_document, n2o_proto, n2o_relay, n4u_error, n4u_io, n2o_log, n2o_mq, n2o_pickle, n2o_query, n2o_secret, n2o_session, n2o_syn, n4u_client, n2o_file, n4u_heart, n4u_http, n2o_nitrogen, n2o_text, wf, wf_convert, wf_utils]},
   {registered, [n4u_sup]},
   {mod, {n4u_app, []}},
   {env, []}

+ 0 - 15
src/handlers/n2o_io.erl

@@ -1,15 +0,0 @@
--module(n2o_io).
--export([info/3, warning/3, error/3]).
-
-
-info(Module, String, Args) ->
-    io:format(format_message(Module, String), Args).
-
-warning(Module, String, Args) ->
-    io:format(format_message(Module, String), Args).
-
-error(Module, String, Args) ->
-    io:format(format_message(Module, String), Args).
-
-format_message(Module, String) ->
-    wf:to_list([Module, ":", String, "\n\r"]).

+ 20 - 0
src/handlers/n4u_io.erl

@@ -0,0 +1,20 @@
+-module(n4u_io).
+
+-export([info/3, warning/3, error/3]).
+
+
+info(Module, String, Args) ->
+  io:format(format_message(Module, String), Args).
+
+
+warning(Module, String, Args) ->
+  io:format(format_message(Module, String), Args).
+
+
+error(Module, String, Args) ->
+  io:format(format_message(Module, String), Args).
+
+
+format_message(Module, String) ->
+  nitro:to_list([Module, ":", String, "\n\r"]).
+