1 / 20

Blu -steam Logger & File Uploader Program

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

sylvia
Download Presentation

Blu -steam Logger & File Uploader Program

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Blu-steamLogger &File Uploader Program CP2011 Advanced Programming Project

  2. Contents Logger Uploader • File Uploader • How to call Uploader • Unit Test • Uploaderer Class Diagram • Test Suite for Logger & Uploader • Objective • Project Time Line • Logger Type • Console Logger • File Logger • Mail Logger • XML Logger • Composite Logger • How to call Logger • Unit Test • Logger Class Diagram

  3. 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.

  4. Project Time Line Each iteration was planed in the period of two weeksfollowing the agile development principle. The customer requirements compliance was checked by the project leader and customer at the end of each iteration. Customer and LeaderReview Customer and LeaderReview Customer and LeaderReview Customer and LeaderReview

  5. Logger Type Blu-steam logger includes five types of logger that can utilize in server and client application. • Console Logger • File Logger • Mail Logger • XML Logger • Composite Logger

  6. Console Logger Log data will be displayed in the console in the following format when a user event is triggered. Stack Trace User Message Host Name IP Address Time Stamp

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

  8. Mail Logger Log 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“

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

  10. Composite Logger Output all types of log at once when a user event is triggered. Console Mail • ILogger logger = loggerFactory.Make("CompositeLogger"); • logger.Write("This is Composite Logger test message 1."); File XML

  11. How to call Logger LoggerFactoryImplementationloggerFactory = 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.");

  12. Unit Test UnitTestLogger.cs program code run the unit tests for all logger functions Test Result

  13. Blu-steamFile Uploader Program CP2011 Advanced Programming Project

  14. File Uploader FTP File File FTP Server Blu-Steam Clinet Secure FTP JCU manning3 Server SFTP Server

  15. How to call Uploader IUploaderFactoryuploadFactory; uploadFactory = new UploaderFactoryImplementation(); IUploaderDaoGateway ftp = uploadFactory.Make("Ftp"); ftp.Upload(directory, fileName); IUploaderDaoGatewaysftp = uploadFactory.Make("SecureFtp"); sftp.Upload(directory, fileName);

  16. Unit Test UnitTestUploader.cs program code run the unit tests for all uploader functions Test Result

  17. Test Suite for Logger & Uploader

  18. END of Slide END of Slide

More Related