]> khamidou — GitHub mirrors - electron.git/commitdiff
docs: Add example
authorCheng Zhao <zcbenz@gmail.com>
Thu, 26 Nov 2015 12:44:07 +0000 (20:44 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 26 Nov 2015 12:44:07 +0000 (20:44 +0800)
docs/api/environment-variables.md

index 76cf4304e53b8dca2a83f04372a244d47c2271f6..b5d3ff3f6f7b799d5d64f6449ce987be2e152fa3 100644 (file)
@@ -3,6 +3,20 @@
 Some behaviors of Electron are controlled by environment variables, because they
 are initialized earlier than command line and the app's code.
 
+Examples on POSIX shells:
+
+```bash
+$ export ELECTRON_ENABLE_LOGGING=true
+$ electron
+```
+
+on Windows console:
+
+```powershell
+> set ELECTRON_ENABLE_LOGGING=true
+> electron
+```
+
 ## `ELECTRON_RUN_AS_NODE`
 
 Starts the process as a normal Node.js process.