+1 leaving Logger in core.

Tyler, to explain what is going on, in cordova 3.0 we are removing all
plugins and core apis except the minimum required to run a cordova
application. The idea is you can compose a hybrid app shell with ONLY the
plugins/APIs you need, rather than ALL of the plugins cordova supported,
as it was to date. This way your app will be smaller, run better, and only
require the permissions from the plugins that you need, rather than all of
them.

To achieve this, we have put all of these plugins into their own repo. See
[1], you'll see a variety of cordova-plugin-* repos.

If you want to install any particular API into a master or 3.0 cordova
application, you'll need to use the tool we built called plugman
specifically for the purpose of installing + uninstalling plugins into
cordova-generated projects [2].

So after generating this new "bare" cordova application, you can use
plugman like so:

$ npm install -g plugman
$ ./cordova-ios/bin/create ./newproj ca.filmaj.testproj TestProj
$ plugman --platform ios --project ./newproj --plugin
https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git

Hope that helps,
Fil

[1] https://git-wip-us.apache.org/repos/asf/
[2] https://git-wip-us.apache.org/repos/asf/cordova-plugman.git


On 7/1/13 8:35 PM, "Steven Gill" <[email protected]> wrote:

>Hmmm,
>
>I actually thought we were leaving logger in core and not pulling out the
>console plugin. I at least marked it on jira
>https://issues.apache.org/jira/browse/CB-3639. We should probably discuss
>if this is something that we want to pull out into its own plugin.
>CDVLogger is the reason console.log works for iOS. A case can be made to
>it
>in core just so developers get that by default.
>
>
>
>On Mon, Jul 1, 2013 at 4:43 PM, Tyler Wilson
><[email protected]>wrote:
>
>> First, I know I should likely not be using 'master', but a named branch
>> like '2.9.x', but I cannot seem to wrangle git into doing this for me.
>>
>> With that out of the way, I just did a git pull on the my locally
>>cloned,
>> read-only repo. According to the last commit message - "Remove CDVLogger
>> (moved out to cordova-plugin-console)" - it appears the CDVLogger has
>>been
>> removed. Which explains the CDVLogger.h/m going away. But I also now
>>get a
>> message like this for every log:
>>
>> 2013-07-01 19:02:07.042 PRUniversal[5873:c07] ERROR: Plugin 'Logger' not
>> found, or is not a CDVPlugin. Check your plugin mapping in config.xml.
>> 2013-07-01 19:02:07.042 PRUniversal[5873:c07] -[CDVCommandQueue
>> executePending] [Line 116] FAILED pluginJSON = [
>>   "INVALID",
>>   "Logger",
>>   "logLevel",
>>   [
>>     "LOG",
>>     "onPageChange()"
>>   ]
>> ]
>>
>> Perhaps the commit can contain a more detailed message stating what
>>should
>> be done instead of the CDVLogger option. It mentions CDVConsole, but I
>>see
>> not source for this in the CordovaLib project either.
>>
>> Help please.
>>
>> Thank you,
>> Tyler

Reply via email to