Skip to content

Commit 5c70a31

Browse files
committed
Tau - also log to stdout when in dev mode
1 parent e33270d commit 5c70a31

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/server/beam/tau/config/runtime.exs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@ config :tau,
1717
handle_otp_reports: true,
1818
handle_sasl_reports: true
1919

20-
config :logger,
20+
if config_env() == :dev do
21+
config :logger,
22+
backends: [{LoggerFileBackend, :tau_file_log}, :console]
23+
else
24+
config :logger,
2125
backends: [{LoggerFileBackend, :tau_file_log}]
26+
end
2227

2328
config :logger, :tau_file_log,
2429
path: log_path,

0 commit comments

Comments
 (0)