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

Is there a way to log into blob storage in a text file instead of xml? And can I append to it ? #73

Open
Ali-Nass opened this issue Mar 2, 2018 · 1 comment

Comments

@Ali-Nass
Copy link

Ali-Nass commented Mar 2, 2018

I'm using the following for now :

    <appender name="AzureBlobAppender" type="log4net.Appender.AzureBlobAppender, log4net.Appender.Azure">
      <param name="ContainerName" value="testblobcontainer" />
      <param name="DirectoryName" value="logs/" />
      <!-- You can either specify a connection string or use the ConnectionStringName property instead -->
      <param name="ConnectionString" value="UseDevelopmentStorage=true;" />
      <!--<param name="ConnectionStringName" value="GlobalConfigurationString" />-->
      <bufferSize value="5" />
    </appender>

But as expected I'm ending up with MANY xml files. So my question is, can I log into 1 text file? If not, can I at least end up with 1 xml file instead of 1 for each log message?

PS: I tried using the following but didnt work

<appender name="AzureAppendBlobAppender" type="log4net.Appender.AzureAppendBlobAppender, log4net.Appender.Azure">
  <param name="ContainerName" value="testblobcontainer"/>
  <param name="DirectoryName" value="logs"/>
  <!-- You can either specify a connection string or use the ConnectionStringName property instead -->
  <param name="ConnectionString" value="UseDevelopmentStorage=true"/>
  <!--<param name="ConnectionStringName" value="GlobalConfigurationString" />-->
  <bufferSize value="5" />
</appender>
@Ali-Nass
Copy link
Author

Ali-Nass commented Mar 2, 2018

the Append Blob operations are not supported by the emulator currently so appending to one file won't work for me since im using the development storage. Still no idea how to make it in a txt file instead of XML though.

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

1 participant