blu -steam logger & file uploader program

Post on 22-Feb-2016

74 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Blu -steam Logger & File Uploader Program. CP2011 Advanced Programming Project. Contents. Logger. Uploader. File Uploader How to call Uploader Unit Test Uploader er Class Diagram Test Suite for Logger & Uploader. Objective Project Time Line Logger Type Console Logger - PowerPoint PPT Presentation

TRANSCRIPT

Blu-steamLogger & File Uploader Program

CP2011 Advanced ProgrammingProject

Contents

12. File Uploader13. How to call Uploader14. Unit Test15. Uploaderer Class Diagram16. Test Suite for Logger &

Uploader

Logger1. Objective2. Project Time Line3. Logger Type4. Console Logger5. File Logger6. Mail Logger7. XML Logger8. Composite Logger9. How to call Logger10. Unit Test11. Logger Class Diagram

Uploader

Objective

This program was designed and developed according to customer’s and development team’s requirements to enhance the development of Blu-steam system program and to provide the robust maintenance efficiency after the release of the system. This is achieved by this logger program that has an ability to report and identify a system problem quickly and accurately in the variety of methods to produce log data.

Project Time Line

Week1 Week3 Week5 Week7 Week9

Iteration1 Design & Implement Console and File Logger

Iteration2 Design & Implement Mail Logger

Iteration3 Design & Implement Composite Logger

Iteration4 Design & Implement XML Logger

Mile Stone

Each iteration was planed in the period of two weeks following the agile development principle. The customer requirements compliance was checked by the project leader and customer at the end of each iteration.

Customer and Leader Review

Customer and Leader Review

Customer and Leader Review

Customer and Leader Review

Logger Type

• Console Logger• File Logger• Mail Logger• XML Logger• Composite Logger

Blu-steam logger includes five types of logger that can utilize in server and client application.

Console LoggerLog data will be displayed in the console in the following format when a user event is triggered.

Host Name IP Address Time

Stamp Stack Trace User Message

File LoggerLog messages are appended and stored to a log file having the time stamped file name in the format of logger_YYYYMMDD.log

Mail LoggerLog messages sent to a mail box when a user event is triggered.

The default mail account where logs will be sent is:Gmail ) user id: "blusteam@gmail.com" password: "jup9ANez“

XML LoggerLog messages are appended and stored to a XML log file having the time stamped file name in the format of “xmlogger_YYYYMMDD.log”

Composite LoggerOutput all types of log at once when a user event is triggered.

ILogger logger = loggerFactory.Make("CompositeLogger");logger.Write("This is Composite Logger test message 1.");

XMLFile

Console Mail

How to call LoggerLoggerFactoryImplementation loggerFactory = new LoggerFactoryImplementation(); ILogger logger = loggerFactory.Make("ConsoleLogger");logger.Write("This is Console Logger test message 1.");logger.Write("This is Console Logger test message 2."); ILogger logger = loggerFactory.Make("FileLogger");logger.Write("This is File Logger test message 1."); ILogger logger = loggerFactory.Make("MailLoggerForServer");logger.Write("This is Mail Logger test message 1."); ILogger logger = loggerFactory.Make("MailLoggerForClient");logger.Write("This is Mail Logger test message 1.");

ILogger logger = loggerFactory.Make("XmlLogger");logger.Write("This is XML Logger test message 1."); ILogger logger = loggerFactory.Make("CompositeLogger");logger.Write("This is Composite Logger test message 1.");

Unit TestUnitTestLogger.cs program code run the unit tests for all logger functions

Test Result

Blu-steamFile Uploader Program

CP2011 Advanced ProgrammingProject

File Uploader

FTP

Secure FTP

FTP Server

SFTP Server

File

Blu-Steam Clinet

File

JCU manning3 Server

How to call Uploader

IUploaderFactory uploadFactory;uploadFactory = new UploaderFactoryImplementation();

IUploaderDaoGateway ftp = uploadFactory.Make("Ftp");ftp.Upload(directory, fileName);

IUploaderDaoGateway sftp = uploadFactory.Make("SecureFtp");sftp.Upload(directory, fileName);

Unit TestUnitTestUploader.cs program code run the unit tests for all uploader functions

Test Result

Test Suite for Logger & Uploader

END of Slide

END of Slide

top related