Skip to content

Commit f95fe65

Browse files
committed
Added device log
1 parent 4b1af46 commit f95fe65

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ Run `tns help` to list all available commands. Run or `tns <Command> --help` to
204204
* `deploy <Platform> [--device <Device ID>]` deploys an already built application on connected device.
205205
* `run <Platform> [--device <Device ID>]` executes `prepare`, `build`, and `deploy`.
206206
* `device` lists connected devices, including any running Android Virtual Devices or Genymotion virtual devices.
207+
* `device log` opens the log stream for the selected device.
207208
* `device run` runs a selected application on a connected device.
208209
* `device list-applications` lists the installed applications on all connected devices.
209210
* `feature-usage-tracking` configures anonymous feature usage tracking.

resources/help.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ General commands:
2323
This is shorthand for prepare, build, and deploy.
2424
debug Debugs your project on a connected device or in the native emulator, if configured.
2525
device Lists all recognized connected physical or virtual device.
26+
device log Opens the log stream for the selected device.
2627
device run Runs the selected application on a connected device.
2728
device list-applications Lists the installed applications on all connected devices.
2829
feature-usage-tracking Configures anonymous feature usage tracking.
@@ -540,6 +541,20 @@ Options:
540541

541542
--[/]--
542543

544+
--[device|log]--
545+
Usage:
546+
$ tns device log --device <Device ID>
547+
$ nativescript device log --device <Device ID>
548+
549+
Opens the device log stream for a selected connected device.
550+
551+
<Device ID> is the device index or identifier as listed by $ tns device
552+
553+
Options:
554+
--device - If multiple devices are connected, sets the device for which you want to stream the log in the console.
555+
556+
--[/]--
557+
543558
--[device|list-applications]--
544559

545560
Usage:

0 commit comments

Comments
 (0)