Skip to content

Commit c941659

Browse files
added capability to provide logger (#19)
* added capability to provide logger
1 parent 49b8280 commit c941659

File tree

7 files changed

+659
-1301
lines changed

7 files changed

+659
-1301
lines changed

CHANGELOG.MD

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to the "@qavajs/memory" will be documented in this file.
44

55
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
66

7+
## [1.6.0]
8+
- :rocket: added capability to provide logger
9+
710
## [1.5.1]
811
- :beetle: fixed issue with non string inputs
912

index.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
declare interface Logger {
2+
log(value: any): void;
3+
}
4+
15
declare type Memory = {
26
register(memoryMap: Object): void;
37
setValue(key: string, value: any): void;
48
getValue(key: string): any;
9+
setLogger(logger: Logger): void;
510
}
611
declare const memory: Memory;
712
declare module '@qavajs/memory' {

0 commit comments

Comments
 (0)