Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8198

Unified console output logic for core platforms

    XMLWordPrintableJSON

Details

    Description

      Currently all major platform scripts doesn't recognize trace levels and always logging all their output to console.
      This could be unuseful, especially when a huge output from build tools is put to console (ant build/xcodebuild output is really huge and in most cases is unnecessary)

      I propose to unify the way we write messages to console output:

      1. Pass verbosity arguments (-d, --debug ) downstream to platform scripts.
      2. Introduce special Log class which is shared across platform scripts

      • automatically detects trace level according to command line arguments;
      • support of output redirection (file, other) in the future?

      3. Add support for the following verbosity levels: Error, Normal, Debug

      • by default: Error and Normal messages are traced
      • -silent: only Error messages are traced
      • -verbose: everything is traced

      Attachments

        Activity

          People

            purplecabbage Jesse MacFadyen
            vladimir.kotikov Vladimir Kotikov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: