You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+86-1Lines changed: 86 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,81 @@ system environment variables; do not enable if sensitive information such as pas
62
62
$logger = new Logger('application_name', 'environment_name', $transport, true);
63
63
```
64
64
65
-
65
+
### **Configuration Settings**
66
+
- This allow users to override default settings of the logger (Masking Request Variables, Session, Cookie or Updating connection properties to different Transports etc.)
67
+
-**Note** - For the `Whitelist/Blackist` setting. Anything `falsy` (`null`, `false`, `array()` etc. - Refer to php [empty](https://www.php.net/manual/en/function.empty.php) function checking) will be considered as `Do Not Track` - No variable data will be processed.
-`ApiCallLogsEndpoint` - `String` - Stackify API Call Logs endpoint
137
+
-`ApiMaxTimeout` - `Numeric` - Stackify API Call Max Timeout
138
+
-`ApiVersionHeader` - `String` - Stackify API Version Header
139
+
66
140
#### Troubleshooting
67
141
68
142
If transport does not work, try looking into ```vendor\stackify\logger\src\Stackify\debug\log.log``` file (if it is available for writing). Errors are also written to global PHP [error_log](http://php.net/manual/en/errorfunc.configuration.php#ini.error-log).
@@ -71,6 +145,17 @@ Note that ExecTransport does not produce any errors at all, but you can switch i
71
145
$transport = new ExecTransport($apiKey, ['debug' => true]);
72
146
```
73
147
148
+
You can set it also on the `Logger` level. Setting the `Debug` and `DebugLogPath`
149
+
150
+
```php
151
+
$config = array(
152
+
'DebugLogPath' => '/path/to/log.log',
153
+
'Debug' => true
154
+
);
155
+
156
+
$logger = new Logger('application_name', 'environment_name', $transport, true, $config);
0 commit comments