add topic oriented debugging selection
This commit is contained in:
16
readme.md
16
readme.md
@@ -1,13 +1,16 @@
|
||||
# smartdebug
|
||||
|
||||
debug the smart way
|
||||
|
||||
## Availabililty
|
||||
|
||||
[](https://www.npmjs.com/package/@pushrocks/smartdebug)
|
||||
[](https://GitLab.com/pushrocks/smartdebug)
|
||||
[](https://github.com/pushrocks/smartdebug)
|
||||
[](https://pushrocks.gitlab.io/smartdebug/)
|
||||
|
||||
## Status for master
|
||||
|
||||
[](https://GitLab.com/pushrocks/smartdebug/commits/master)
|
||||
[](https://GitLab.com/pushrocks/smartdebug/commits/master)
|
||||
[](https://www.npmjs.com/package/@pushrocks/smartdebug)
|
||||
@@ -19,23 +22,24 @@ debug the smart way
|
||||
[](http://standardjs.com/)
|
||||
|
||||
## Usage
|
||||
|
||||
Use TypeScript for best in class instellisense.
|
||||
|
||||
```typescript
|
||||
import * as smartdebug from '@pushrocks/smartdebug';
|
||||
|
||||
smartdebug.log('a cool message') // won't log
|
||||
smartdebug.log('a cool message'); // won't log
|
||||
smartdebug.enableDebugging();
|
||||
smartdebug.log('another cool message') // this message will log
|
||||
smartdebug.log('another cool message'); // this message will log
|
||||
|
||||
if(smartdebug.debugEnabled) {
|
||||
console.log('Hi there!') // will also log since debugging is enabled
|
||||
if (smartdebug.debugEnabled) {
|
||||
console.log('Hi there!'); // will also log since debugging is enabled
|
||||
}
|
||||
```
|
||||
|
||||
For further information read the linked docs at the top of this README.
|
||||
|
||||
> licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
||||
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
|
||||
> licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
||||
> | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
|
||||
|
||||
[](https://push.rocks)
|
||||
|
||||
Reference in New Issue
Block a user