Azure Java Tomcat Record

I plan to migrate a previously created Java application to Azure. The application previously used log4jfor application level logs that were stored in a locally generated file. The problem is that with the Azure multi-instance role, I have to collect and aggregate these logs, and make sure that they are stored in persistent storage instead of the virtual machine hard drive.

Logging is a critical component of the application, but it should not slow down. I examined several options, and I’m interested in learning about best practice, about the best solution that takes into account the security, consistency and performance of the logs during storage and subsequent processing. The following is a list of options:

  • Using log4j with custom Appenderto store information in Azure SQL.
  • Using log4j with custom Appenderto store information in Azure table storage.
  • Writing an additional tool that transfers data from the local hard drive to any of the above persistent storage.

Is there any other method or are there any complete solutions for this problem for Java? Which of the above would be best to consider the above criteria?

+5
source share
4 answers

, Log4J Appender. , , . , , , Azure, , API.

:

, Azure Tables, LogEntity, com.microsoft.windowsazure.services.table.client.TableServiceEntity.

, org.apache.log4j.AppenderSkeleton, java.util.List<LogEntity>.

protected void append(LoggingEvent event) , , Azure.

, Appender log4j.

+1

, ... append Table Storage , ( ..).

, (, ). , . 10 000 100 250 . , . SQL Azure , .

, Windows Azure, . , Java . Eclipse, script, , .net- - AzureRunMe. Visual Studio Java-, .

, , Java . , . , Cloud Ninja Java, Tomcat ( ) .net exe, , .

+2

, . "Tomcat Solution Diagnostics" . , Java (log4j, ) Tomcat .

6: Tomcat

http://blogs.msdn.com/b/avkashchauhan/archive/2010/10/29/windows-azure-tomcat-solution-accelerator-full-solution-document.aspx

, , java.exe, php.exe, python .., " ", Azure Diagnostics (WorkerRole.cs) Azure VM Azure Blob.

.

Azure Diagnostics Azure blob , .

+1

:

log4j (, DailyRollingFileAppender), UNC (IaaS). , . , , .

RDP/FTP ..

, Log4j... .

Jeevan

PS: , , (/ .log .out Weblogic)

0
source

All Articles