generated from argahsuknesib/TS-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor logger enums and update aggregator config
- Loading branch information
1 parent
b7b224f
commit 7a4fdec
Showing
10 changed files
with
129 additions
and
221 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"aggregation_pod_ldes_location" : "http://localhost:3000/aggregation_pod/aggregation/", | ||
"aggregation_pod_ldes_location" : "http://localhost:3000/aggregation_pod/", | ||
"aggregator_rate_limit": 30 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Logger, LogLevel } from "./Logger"; | ||
|
||
describe('Logger', () => { | ||
it('should initialize', () => { | ||
const logLevel: LogLevel = LogLevel.INFO; | ||
const loggableClasses = ['RSPService']; | ||
const logDestination_console = 'CONSOLE'; | ||
const logDestination_file = 'FILE'; | ||
const logger_console = new Logger( | ||
logLevel, | ||
loggableClasses, | ||
logDestination_console, | ||
); | ||
expect(logger_console).toBeDefined(); | ||
|
||
const logger_file = new Logger( | ||
logLevel, | ||
loggableClasses, | ||
logDestination_file, | ||
); | ||
|
||
expect(logger_file).toBeDefined(); | ||
}); | ||
}); |
Oops, something went wrong.