Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to run the example #5

Closed
vyorkin opened this issue Jul 16, 2017 · 2 comments
Closed

unable to run the example #5

vyorkin opened this issue Jul 16, 2017 · 2 comments

Comments

@vyorkin
Copy link

vyorkin commented Jul 16, 2017

I'm on the latest Mac OS X. Here is what've tried so far:

  • $ git clone https://github.com/slashmili/ex_syslogger.git
  • $ cd ex_syslogger
  • $ mix deps.get
  • $ cd examples/example1
  • $ mix deps.get
  • $ iex -S mix
  • iex(1)> Example1.run

I'll paste the error as is:

2017-07-16 00:37:17.081 [error] nonode@nohost module=Logger.Watcher line=99 function=handle_info/2  :gen_event handler {ExSyslogger, :ex_syslogger_json} installed at Logger
** (exit) an exception was raised:
    ** (UndefinedFunctionError) function Poison.encode/1 is undefined (module Poison is not available)
        Poison.encode(%{level: :error, message: "GenServer #PID<0.170.0> terminating\n** (stop) {:EXIT, {:undef, [{Poison, :encode, [%{level: :error, message: \"GenEvent handler {ExSyslogger, :ex_syslogger_json} installed in Logger terminating\\n** (UndefinedFunctionError) function Poison.encode/1 is undefined (module Poison is not available)\\n    Poison.encode(%{level: :error, message: \\\"GenServer #PID<0.168.0> terminating\\\\n** (stop) {:EXIT, {:undef, [{Poison, :encode, [%{level: :error, message: \\\\\\\"GenEvent handler {ExSyslogger, :ex_syslogger_json} installed in Logger terminating\\\\\\\\n** (UndefinedFunctionError) function Poison.encode/1 is undefined (module Poison is not available)\\\\\\\\n
slashmili added a commit that referenced this issue Jul 16, 2017
@slashmili
Copy link
Owner

@vyorkin I fixed the dependency list and it works now

BTW probably you won't be able to see the log in OS X syslog. I'm not sure what's the problem but since El Capitan, I can not log anything to OS X syslog. I tried syslog library in C and python and it was the same.

@vyorkin
Copy link
Author

vyorkin commented Jul 16, 2017

thank you very much @slashmili !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants