Github user nikhilkh commented on a diff in the pull request:
https://github.com/apache/cordova-windows/pull/119#discussion_r38723140
--- Diff: template/cordova/lib/log.js ---
@@ -30,33 +30,87 @@ var platformRoot = path.join(__dirname, '..', '..'),
configPath = path.join(projectRoot, 'config.xml');
// variables
-var appTracingInitialState = null,
+var appTracingLog =
'Microsoft-Windows-AppHost/ApplicationTracing',
+ appTracingInitialState = null,
appTracingCurrentState = null,
- adminInitialState = null,
- adminCurrentState = null,
+ adminLog = 'Microsoft-Windows-AppHost/Admin',
+ adminInitialState = null,
+ adminCurrentState = null,
+ timers = [],
appName;
/*
* Gets windows AppHost/ApplicationTracing and AppHost/Admin logs
* and prints them to console
*/
-module.exports.run = function() {
- getLogState('Microsoft-Windows-AppHost/Admin').then(function (state) {
+module.exports.run = function(args) {
+ var dump = false,
+ startTime = new Date(new Date().getTime() - 10 * 60 *
1000).toISOString(); // show last 10 minutes by default
+
+ if (args.length > 0) {
+ for (var i = 0; i < args.length; i++) {
+ switch (args[i]) {
--- End diff --
Ideally, we should use a library for this - the one that is used by
cordova-windows should be re-used here instead of doing this on your own.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]