Skip to content
This repository was archived by the owner on Mar 1, 2022. It is now read-only.

Sink not working #39

@Nerkyator

Description

@Nerkyator

Just tried this sink with a working Loggly account but seems not working at all.
This is my configuration code:

        private void SetupLogglyConfiguration()
        {
            const string appName = "APP-NAME";
            const string customerToken = "MY-TOKEN";

            //Configure Loggly
            var config = LogglyConfig.Instance;
            config.CustomerToken = customerToken;
            config.ApplicationName = appName;
            config.Transport = new TransportConfiguration()
            {
                EndpointHostname = "XXXXX.loggly.com",
                EndpointPort = 443,
                LogTransport = LogTransport.Https
            };
            config.ThrowExceptions = true;
            config.

            //Tags
            config.TagConfig.Tags.AddRange(new ITag[]{
                new ApplicationNameTag {Formatter = "application-{0}"},
                new HostnameTag { Formatter = "host-{0}" }
            });
        }

After launch above method I create my log like this:

new LoggerConfiguration().Enrich.With(new UserLogEventEnricher(userName, $"v. {appVersionString} b{appBuildNumber}")).WriteTo.Loggly(bufferBaseFilename: @"log_buffer").CreateLogger();

But when I log something nothing appears on website side. Worst problem is that there are no error or exception at all. I tried to place a wrong token or a wrong connection port (433888888 is a little bit large number for a port) but I get no error, it does nothing at all.
What am I missing?

Edit:
Checked on app folder (in simulator) I can see the log_buffer file is created and filled with logs so the problem seems only the connection with Loggly server.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions