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

Doesn't work. #39

Closed
aw230012 opened this issue Apr 4, 2016 · 7 comments
Closed

Doesn't work. #39

aw230012 opened this issue Apr 4, 2016 · 7 comments

Comments

@aw230012
Copy link

aw230012 commented Apr 4, 2016

I have installed the package. The appender creates the logging table, but never actually writes anything to it. Below is the setup for confirmation:

<log4net> <appender name="AzureTableAppender" type="log4net.Appender.AzureTableAppender, log4net.Appender.Azure"> <param name="TableName" value="MobileLog"/> <param name="ConnectionStringName" value="Azure_Logging" /> <!-- You can specify this to make each LogProperty as separate Column in TableStorage, Default: all Custom Properties were logged into one single field --> <param name="PropAsColumn" value="true" /> <param name="PartitionKeyType" value="LoggerName" /> </appender> <root> <level value="INFO" /> <appender-ref ref="AzureTableAppender" /> </root> </log4net>

@piazera
Copy link

piazera commented May 7, 2016

I have the exact same issue.
I've set up 3 log appenders:

  • blob
  • table
  • file (for debug)

The file appender works fine, while the azure ones create the logging table or the blob but never dumps anything there.

@mutabot
Copy link

mutabot commented May 16, 2016

May be a buffering issue.
Try adding

@limlim1986
Copy link

Got the same issue. It creates the table but nothing is written to it. If i use the example console application from this repo it works fine but when using the nuget package it wont write any logs to the table.

@ghost
Copy link

ghost commented Jun 16, 2016

Another bufferSize issue?

@aschaible
Copy link

Same issue, not working. Any chance this gets fixed?

@ghost
Copy link

ghost commented Jul 13, 2016

@aschaible It works just fine. Make sure that the bufferSize is set (default is 512). Also you can manually flush the buffer using the code below

ILoggerRepository rep = LogManager.GetRepository();
foreach (IAppender appender in rep.GetAppenders())
{
    var buffered = appender as BufferingAppenderSkeleton;
    if (buffered != null)
    {
        buffered.Flush();
    }
}

@stemarie
Copy link
Owner

The only thing that I see that could be done is perhaps flush on the Dispose method.
I'd recommend changing the bufferSize instead

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

6 participants