diff --git a/.gitignore b/.gitignore index 54d4b53..f1a267f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,23 +1,11 @@ -# The directory Mix will write compiled artifacts to. /_build/ - -# If you run "mix test --cover", coverage assets end up here. /cover/ - -# The directory Mix downloads your dependencies sources to. /deps/ - -# Where third-party dependencies like ExDoc output generated docs. /doc/ - -# If the VM crashes, it generates a dump, let's ignore it too. erl_crash.dump - -# Also ignore archive artifacts (built via "mix archive.build"). *.ez - -# Ignore package tarball (built via "mix hex.build"). -xplore-*.tar - -# Temporary files, for example, from tests. +scopes-*.tar /tmp/ + +log/ +.env diff --git a/config/config.exs b/config/config.exs new file mode 100644 index 0000000..57b8044 --- /dev/null +++ b/config/config.exs @@ -0,0 +1,10 @@ +# scopes: basic config file + +import Config + +config :logger, :default_handler, + config: [ + file: ~c"log/scopes.log" + ] + +import_config "#{config_env()}.exs" diff --git a/config/test.exs b/config/test.exs new file mode 100644 index 0000000..b0a2c46 --- /dev/null +++ b/config/test.exs @@ -0,0 +1,8 @@ +# scopes: config file for testing + +import Config + +config :logger, :default_handler, + config: [ + file: ~c"test/log/scopes_test.log" + ] diff --git a/lib/csys/csys.ex b/lib/csys/csys.ex index 80cc8ba..f7afb24 100644 --- a/lib/csys/csys.ex +++ b/lib/csys/csys.ex @@ -1,7 +1,11 @@ defmodule Scopes.CSys do + require Logger + alias Scopes.Core.Actor def neuron(scope) do + #Logger.info("create neuron, scope: #{inspect scope}") + Logger.info([info: "create neuron", scope: inspect(scope)]) Actor.create(fn msg -> process(msg, scope) end) end diff --git a/lib/csys/programs.ex b/lib/csys/programs.ex index 736c0c1..3be6494 100644 --- a/lib/csys/programs.ex +++ b/lib/csys/programs.ex @@ -29,5 +29,4 @@ defmodule Scopes.CSys.Programs do def std_proc(msg, scope) do unless forward(msg, scope), do: notify(msg, scope) end - end