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

Logging callback exposed #2576

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

ltetak
Copy link
Contributor

@ltetak ltetak commented Dec 12, 2024

As a maintainer of an application using LiteDB, I would like to have insight into LiteDB behavior. So I added a simple callback that will expose logs. If not used then it should not make any performance difference. If used then it depends on the subscriber how this is handled.

@ltetak ltetak mentioned this pull request Dec 12, 2024
@@ -39,7 +39,7 @@ public CollectionPage(PageBuffer buffer, uint pageID)
public CollectionPage(PageBuffer buffer)
: base(buffer)
{
ENSURE(this.PageType == PageType.Collection, "page type must be collection page");
ENSURE(this.PageType == PageType.Collection, "page type must be collection page, but it is {0}", PageType);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry this does not work, PageType argument is not replaced.

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.

1 participant