Skip to content

Commit 87394f2

Browse files
authored
Merge pull request #23 from prolificinteractive/bugfix/readme_update_console_logger
Update README to add information about disabling the console logs
2 parents b46bc9f + bcc3a2e commit 87394f2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@ If you do not yet know which analytics tool your project will be using, that's f
6868
By default, if Simcoe is not given any providers, it will automatically create a default provider to use as a placeholder. This allows you to implement, track, and debug analytics without a provider. Then, when your
6969
provider changes, simply update your `run()` call with the providers and that's it!
7070

71+
To facilitate debugging when using multiple providers, Simcoe contains a few options for updating the information logged in the console:
72+
73+
* Verbose
74+
* Simple
75+
* None
76+
77+
By default, Simcoe will log all console outputs in detail (*Verbose*) providing one line per item for **each** provider that was specified. *Simple* will output one line per item regardless of how many providers were specified while *None* will disable all console logging. To update the *outputOption,* simply call (update this property after the `run()` command):
78+
79+
`Simcoe.engine.tracker.outputOption = .Simple`
80+
7181
Simcoe providers a base function call for each major analytics action right out of the gate, giving a consistent API to all of your analytics tracking. For instance, to track page views:
7282

7383
``

0 commit comments

Comments
 (0)