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

Second call to log() doesn't work... #125

Open
benatsila opened this issue Oct 27, 2022 · 1 comment
Open

Second call to log() doesn't work... #125

benatsila opened this issue Oct 27, 2022 · 1 comment

Comments

@benatsila
Copy link

Hi. I'm not sure if this is a bug, intended behavior, or a result of me not configuring my SumoLogger instance appropriately. It seems like I can call the log method on a SumoLogger instance one time. Subsequent calls to log seem to do nothing. I've resorted to creating a new SumoLogger instance per log msg in my wrapper, but this doesn't seem correct. Here's how I'm configuring the SumoLogger. Am I missing something?

        const sumo_opts = {
            endpoint: '<my endpoint>',
            returnPromise: false,
            interval: 0,
            sourceName: '<my source name>',
            onSuccess: Logger.onLogSucceeded,
            onError: Logger.onLogFailed,
            sourceCategory: '<my log level>',
            sessionKey: `<my uuid>`
          };
        
        const sumo_logger = new SumoLogger(sumo_opts);
@BozorgVlad
Copy link

@benatsila Hello, I have same issue. Did you resolved it ?

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

No branches or pull requests

2 participants