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

Make flush() public #213

Merged
merged 1 commit into from
Aug 12, 2024
Merged

Make flush() public #213

merged 1 commit into from
Aug 12, 2024

Conversation

CamTosh
Copy link
Contributor

@CamTosh CamTosh commented Aug 9, 2024

The support team send me this sample but it can't work ts: Property 'flush' is private and only accessible within class 'WinstonTransport'.

  // Ensure logs are flushed before the process exits
  process.on('beforeExit', () => {
    axiomTransport
      .flush()
      .then(() => {
        console.log('Logs flushed successfully');
      })
      .catch((error) => {
        console.error('Error flushing logs:', error);
      });
  });
}

@dasfmi dasfmi merged commit 84ea8b8 into axiomhq:main Aug 12, 2024
10 checks passed
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