-
Notifications
You must be signed in to change notification settings - Fork 0
LOGS
Giuliano Ranauro edited this page Jul 22, 2021
·
1 revision
Whenever a car passes by, it's identified as an event, and a Logger
saves it.
We should save events (logs
) to a file or a database, but TinkerCad
does not have this function yet.
We instead simply print to a console the log in a json form:
We can see how the log will be writed:
Logs are a very powerful tool, in this case we have a simple scenario, but we could use them to know when a road is busiest, and act accordingly.