Skip to content

Access to 'category' field of logger objects in TS#1006

Merged
nomiddlename merged 1 commit intolog4js-node:masterfrom
rtvd:ts-access-for-category
May 24, 2020
Merged

Access to 'category' field of logger objects in TS#1006
nomiddlename merged 1 commit intolog4js-node:masterfrom
rtvd:ts-access-for-category

Conversation

@rtvd
Copy link
Copy Markdown

@rtvd rtvd commented May 6, 2020

Sometimes it can be useful to know the category of the logger.
The category can be read from pure JavaScript code but TypeScript code cannot read it as the field is not declared.

This change adds the field to the TypeScript declaration. The access to it is read-only as changing the category of logger probably makes no sense.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 6, 2020

Codecov Report

Merging #1006 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1006   +/-   ##
=======================================
  Coverage   98.64%   98.64%           
=======================================
  Files          25       25           
  Lines        1030     1030           
=======================================
  Hits         1016     1016           
  Misses         14       14           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5175f3f...d65cc3b. Read the comment docs.

@nomiddlename nomiddlename added this to the 6.3.0 milestone May 24, 2020
@nomiddlename nomiddlename merged commit a6eca3e into log4js-node:master May 24, 2020
@nomiddlename
Copy link
Copy Markdown
Collaborator

Thanks a lot for this PR.

@nomiddlename
Copy link
Copy Markdown
Collaborator

Fix published in [email protected]

@rtvd rtvd deleted the ts-access-for-category branch May 29, 2020 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants