Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

plylog 0.5.0 . setVerbose won't change the level of the existing loggers. #5

Open
vdegenne opened this issue Apr 3, 2018 · 0 comments

Comments

@vdegenne
Copy link

vdegenne commented Apr 3, 2018

Steps to reproduce the issue :

  • make a new project (npm init -y)
  • add minimal deps (yarn add typescript plylog -D)
  • make a default tsconfig.json (tsc --init)
  • make a main.ts on the root
import * as logging from 'plylog';

const logger = logging.getLogger('main');


export function main() {
  logger.debug('test');
}
  • make a test.ts on the root
import * as logging from 'plylog';
import {main} from './main';

logging.setVerbose();

main();
  • compile tsc
  • run node test

✔️ expected : outputs debug: test
❌ result : outputs nothing

versions

plylog : 0.5.0
node : 9.10.1
typescript : 2.8.1

additional notes

It works when I switch to plylog 0.4.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant