Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: [BUG] IMeta don't export #219

Closed
gayratv opened this issue Mar 2, 2023 · 1 comment
Closed

Bug: [BUG] IMeta don't export #219

gayratv opened this issue Mar 2, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@gayratv
Copy link

gayratv commented Mar 2, 2023

Describe the bug
TS2305: Module '"tslog"' has no exported member 'IMeta'.

To Reproduce
Steps to reproduce the behavior:

copy code from documentation:

import { Logger, IMeta } from 'tslog';
const logger = new Logger({
  name: 'myLogger',
  type: 'pretty',
  overwrite: {
    formatMeta: (meta?: IMeta) => {
      // format LogObj meta object to a string and return it
      console.log(meta);
      return 'aaa';
    },
  },
});

logger.info('asdasd');

Expected behavior
no error

@gayratv gayratv added the bug Something isn't working label Mar 2, 2023
@terehov terehov closed this as completed in b187106 Mar 2, 2023
@terehov
Copy link
Contributor

terehov commented Mar 2, 2023

tslog 4.8.1 published

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants