diff --git a/services/hilogtool/main.cpp b/services/hilogtool/main.cpp index d35e9208efb3d16aa5aafd4740487614afad926a..06ef9df58697e4def34909cfff2576805a19acb5 100644 --- a/services/hilogtool/main.cpp +++ b/services/hilogtool/main.cpp @@ -43,70 +43,58 @@ static void Helper() "options include:\n" " No option default action: performs a blocking read and keeps printing.\n" " -h --help show this message.\n" - " -x --exit Performs a non-blocking read and exits immediately.\n" + " -x --exit performs a non-blocking read and exits immediately.\n" " -g query hilogd buffer size, use -t to specify log type.\n" - " -p, --privacy\n" - " set privacy formatter feature on or off.\n" + " -p, --privacy set privacy formatter feature on or off.\n" " on turn on\n" " off turn off\n" - " -k\n" - " store log type kmsg or not\n" + " -k store log type kmsg or not.\n" " on yes\n" " off no\n" " -s, --statistics query hilogd statistic information.\n" " -S clear hilogd statistic information.\n" - " -r remove the logs in hilog buffer, use -t to specify log type\n" - " -Q set log flow-control feature on or off.\n" - " pidon process flow control on\n" - " pidoff process flow control off\n" - " domainon domain flow control on\n" - " domainoff domain flow contrl off\n" - " -L , --level=\n" - " Outputs logs at a specific level.\n" - " -t , --type=\n" - " Reads and prints logs of the specific type,\n" - " which is -t app (application logs) by default.\n" - " -D , --domain=\n" - " specify the domain, no more than %d.\n" - " -T , --Tag=\n" - " specify the tag, no more than %d.\n" - " -a , --head= show n lines log on head.\n" - " -z , --tail= show n lines log on tail.\n" - " -G , --buffer-size=\n" - " set hilogd buffer size, use -t to specify log type.\n" + " -r remove the logs in hilog buffer, use -t to specify log type.\n" + " -Q set log flow-control feature on or off.\n" + " pidon process flow control on\n" + " pidoff process flow control off\n" + " domainon domain flow control on\n" + " domainoff domain flow contrl off\n" + " -L , --level= outputs logs at a specific level.\n" + " -t , --type= reads and prints logs of the specific type,\n" + " which is -t app (application logs) by default.\n" + " -D , --domain= specify the domain, no more than %d.\n" + " -T , --Tag= specify the tag, no more than %d.\n" + " -a , --head= show n lines log on head.\n" + " -z , --tail= show n lines log on tail.\n" + " -G , --buffer-size= set hilogd buffer size, may suffix with B or K or M or G or T,\n" + " use -t to specify log type.\n" " -P specify pid, no more than %d.\n" - " -e , --regex=\n" - " show the logs which match the regular expression,\n" - " is a regular expression.\n" - " -f , --filename=\n" - " set log file name.\n" - " -l , --length=\n" - " set single log file size.\n" - " -n , --number\n" - " set max log file numbers.\n" - " -j , --jobid\n" - " start/stop the log file writing task of .\n" + " -e , --regex= show the logs which match the regular expression,\n" + " is a regular expression.\n" + " -f , --filename= set log file name.\n" + " -l , --length= set single log file size, may suffix with B or K or M or G or T.\n" + " -n , --number set max log file numbers.\n" + " -j , --jobid start/stop the log file writing task of .\n" " -w ,--write=\n" - " query log file writing task query.\n" - " start start a log file writing task, see -F -l -n -c for to set more configs,\n" - " stop stop a log file writing task.\n" + " query log file writing task query.\n" + " start start a log file writing task, see -f -l -n -m for to set more configs.\n" + " stop stop a log file writing task.\n" " -m ,--stream=\n" - " none log file without compressing\n" - " zlib compress log file by the zlib algorithm\n" - " zstd compress log file by the zstd algorithm\n" + " none log file without compressing\n" + " zlib compress log file by the zlib algorithm\n" + " zstd compress log file by the zstd algorithm\n" " -v , --format= options:\n" - " time display local time.\n" - " color display colorful logs by log level.i.e. \x1B[38;5;231mVERBOSE\n" + " time display local time.\n" + " color display colorful logs by log level.i.e. \x1B[38;5;231mVERBOSE\n" " \x1B[38;5;75mDEBUG \x1B[38;5;40mINFO \x1B[38;5;166mWARN" " \x1B[38;5;196mERROR \x1B[38;5;226mFATAL\x1B[0m\n" - " epoch display the time from 1970/1/1.\n" - " monotonic display the cpu time from bootup.\n" - " usec display time by usec.\n" - " nsec display time by nano sec.\n" - " year display the year.\n" - " zone display the time zone.\n" - " -b , --baselevel=\n" - " set loggable level.\n" + " epoch display the time from 1970/1/1.\n" + " monotonic display the cpu time from bootup.\n" + " usec display time by usec.\n" + " nsec display time by nano sec.\n" + " year display the year.\n" + " zone display the time zone.\n" + " -b , --baselevel= set loggable level.\n" " \n Types, levels, domains, tags support exclusion query.\n" " Exclusion query can be done with parameters starting with \"^\" and delimiter \",\".\n" " Example: \"-t ^core,app\" excludes logs with types core and app.\n"