-
Notifications
You must be signed in to change notification settings - Fork 28
Sink not working #39
Description
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.