 mdoc = """
 Provides a `debug_log/1` function.
 """
-use_logger? =
-  case System.get_env("DEBUG_LOG") do
-    "false" -> false
-    nil -> false
-    _ -> true
+
+use_logger? = fn() ->
+  if Mix.env() == :dev do
+    (System.get_env("DEBUG_LOG") || false)
+  else
+    Mix.shell.info "Not allowing `DebugLog` in `:prod` build."
+    System.delete_env("DEBUG_LOG")
+    false
   end
+end.()
+
 # Check fof if logger is enabled.
 if use_logger? do
 

      """
      use GenEvent

      def init(state) do
        {:ok, state}
      end

      def handle_event({module, str}, state) when is_binary(str) do
        unless Map.get(state, module) do

      end # quote
    end # defmacro

    def start_link, do: GenEvent.start_link(name: __MODULE__)

  end # defmodule

