Skip to content

Commit 5773ca8

Browse files
mobileoverlordfhunleth
authored andcommitted
Print information to the console for how to use RingLogger
1 parent 266064e commit 5773ca8

File tree

1 file changed

+13
-0
lines changed
  • templates/new/rootfs_overlay/etc

1 file changed

+13
-0
lines changed
+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Pull in Nerves-specific helpers to the IEx session
22
use Nerves.Runtime.Helpers
33

4+
if RingLogger in Application.get_env(:logger, :backends, []) do
5+
IO.puts """
6+
RingLogger is collecting log messages from Elixir and Linux. To see the
7+
messages, either attach the current IEx session to the logger:
8+
9+
RingLogger.attach
10+
11+
or tail the log:
12+
13+
RingLogger.tail
14+
"""
15+
end
16+
417
# Be careful when adding to this file. Nearly any error can crash the VM and
518
# cause a reboot.

0 commit comments

Comments
 (0)