200 likes | 389 Views
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
E N D
Blu-steamLogger &File Uploader Program CP2011 Advanced Programming Project
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
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 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
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
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
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
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“
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”
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
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.");
Unit Test UnitTestLogger.cs program code run the unit tests for all logger functions Test Result
Blu-steamFile Uploader Program CP2011 Advanced Programming Project
File Uploader FTP File File FTP Server Blu-Steam Clinet Secure FTP JCU manning3 Server SFTP Server
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);
Unit Test UnitTestUploader.cs program code run the unit tests for all uploader functions Test Result
END of Slide END of Slide