punchware / JIO-Library

Automatically exported from code.google.com/p/gravity-jio
4 stars 4 forks source link

Improvement 1.2: Standardize all output message #40

Open gravitydevelopment opened 9 years ago

gravitydevelopment commented 9 years ago

1- All log messages in every classes should be standardize as below format: (class name in all capital letter)::(method name in all capital letter)::(log type):(log description)

Example: "FUNCTION::ZIP:: Successfully zipping folder"

2- All exception messages in every classes should be standardize as below format: EXCEPTION::(method name in all capital letter)::+(exception message)

Example: "EXCEPTION::ZIP::" + ex"

fazreil commented 9 years ago

Can you advise on the log type?

Should have them in the example too

punchware commented 9 years ago

Below is the list of log type:

  1. ERROR
  2. EXCEPTION
  3. INFO

The example are as per below:

  1. FUNCTION::ZIP::ERROR::Function crash.
  2. FUNCTION::ZIP::EXCEPTION::Unable to zip due to the invalid input arguments.
  3. FUNCTION::ZIP::INFO::Successfully zipping folder