Skip to content

Commit fd086c8

Browse files
committed
Update readme
Include code use example for LOGGING_CONFIG
1 parent 6bbe769 commit fd086c8

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,15 @@ The config object to be passed to each service has the following properties:
2121
- debug: log both debug and error messages
2222
- error: only log error messages (debug messages are not logged)
2323

24-
The config object should be declared as an AngularJS constant named LOGGING_CONFIG.
24+
The config object should be declared as an AngularJS constant named LOGGING_CONFIG.
25+
26+
Example use of LOGGING_CONFIG:
27+
28+
```javascript
29+
// config object for application logger
30+
config.LOGGING_CONFIG = {
31+
LOGGING_TYPE: 'local',
32+
REMOTE_LOGGING_ENDPOINT: config.TDC_ENDPOINT + "/clientlogger",
33+
REMOTE_ERROR_REPORT_ENDPOINT: config.TDC_ENDPOINT + "/usererrorreport",
34+
LOGGING_LEVEL: "debug" };
35+
```

0 commit comments

Comments
 (0)