               |> Logger.Formatter.format(level, msg, timestamp, metadata)
               |> to_string()
 
-    log = %{level: level, message: msg_str}
+    log = %{level: level, message: msg_str, node: node()}
 
     {:ok, log_json} = metadata
                       |> Enum.reduce(log, &add_to_log/2)


  JSON string:
  ```
  {\"level\":\"error\",\"message\":\"hello JSON formatter\",\"module\":\"MyApp.MyModule\",\"function\":\"do_something\/2\",\"line\":21}

  ```
  """

defmodule ExSyslog.JsonFormatter do
  @moduledoc """
  JsonFormatter is formatter that produces a properly JSON object string where the level, message, node, and metadata are JSON object root properties.

  JSON object:
  ```
    {
      "level": "error",
      "message": "hello JSON formatter",
      "node": "foo@local",
      "module": "MyApp.MyModule",
      "function": "do_something/2",
      "line": 21
