You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/09/10 17:34:47 UTC

[jira] [Commented] (CB-8198) Unified console output logic for core platforms

    [ https://issues.apache.org/jira/browse/CB-8198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14738930#comment-14738930 ] 

ASF GitHub Bot commented on CB-8198:
------------------------------------

GitHub user daserge opened a pull request:

    https://github.com/apache/cordova-lib/pull/306

    CB-8198 Unified console output logic for core platforms

    Passed eventEmitter to PlatformApi poly for logging
    Extended CordovaError with code and context, added ErrorCodes, overrode toString method
    Introduced CordovaExternalToolErrorContext class
    
    [Corresponding CLI updates PR]()
    [Jira issue](https://issues.apache.org/jira/browse/CB-8198)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/MSOpenTech/cordova-lib CB-8198

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cordova-lib/pull/306.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #306
    
----
commit 39649d2908f4a118612bf275faf5d45cd7920234
Author: daserge <v-...@microsoft.com>
Date:   2015-09-10T12:45:51Z

    CB-8198 Unified console output logic for core platforms
    
    Passed eventEmitter to PlatformApi poly for logging
    Extended CordovaError with code and context, added ErrorCodes, overrode toString method
    Introduced CordovaExternalToolErrorContext class

----


> Unified console output logic for core platforms
> -----------------------------------------------
>
>                 Key: CB-8198
>                 URL: https://issues.apache.org/jira/browse/CB-8198
>             Project: Apache Cordova
>          Issue Type: New Feature
>          Components: Android, iOS, Windows, WP8
>            Reporter: Vladimir Kotikov
>            Assignee: Sergey Shakhnazarov
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org