-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #606 from vrk-kpa/develop
[Release] 7.0.0
- Loading branch information
Showing
110 changed files
with
14,319 additions
and
14,839 deletions.
There are no files selected for viewing
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 +1 @@ | ||
* @LJKaski @ketsappi @valger11 | ||
* @LJKaski @ketsappi |
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,35 @@ | ||
## Instructions | ||
|
||
Some of the components have additional logging to guide the right use of those and which was not able to be guided through API or Typescript. | ||
|
||
By default, nothing is logged. User of the library needs to enable logging when needed. User can use console or some 3rd party logging library for their needs. | ||
|
||
### Console | ||
|
||
Basic setup to log to your console. | ||
|
||
```jsx static | ||
import { setLogger } from 'suomifi-ui-components'; | ||
|
||
setLogger(console); | ||
``` | ||
|
||
Some customization. | ||
|
||
```jsx static | ||
import { setLogger, Logger } from 'suomifi-ui-components'; | ||
|
||
const logging: Logger = { | ||
log: (val: string) => { | ||
console.log(`[INFO] ${val}`); | ||
}, | ||
warn: (val: string) => { | ||
console.warn(`[WARN] ${val}`); | ||
}, | ||
error: (val: string) => { | ||
console.error(`[ERR] ${val}`); | ||
} | ||
}; | ||
setLogger(logging); | ||
``` | ||
|
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
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
Oops, something went wrong.