Logman command is the solution for it.
let's have a look at the command syntax
Syntax VerbsLogman [create {counter | trace} collection_name ] [start collection_name] [stop collection_name] [delete collection_name] [query {collection_name|providers}] [update collection_name]
Parameter details:-
create {counter | trace} collection_name : Creates collection queries for either counter or trace collections. You can use command line options to specify settings.
start collection_name : Starts...