当前位置:网站首页>Modify the default log level
Modify the default log level
2022-06-25 06:44:00 【Ah @ potato】
1、log Grade introduction
log Level common 8 individual , Namely :
| Macro definition | Level | describe |
| KERN_EMERG | 0 | Emergency message , This information will cause the system to crash |
| KERN_ALERT | 1 | Prompt for some immediate action |
| KERN_CRIT | 2 | The key information , There are usually serious software or hardware problems |
| KERN_ERR | 3 | Usually used to report errors , For example, device drivers are usually used to report hardware operation failures, etc |
| KERN_WARNING | 4 | Warning message , Used to warn against problems that do not cause serious system exceptions |
| KERN_NOTICE | 5 | Used in normal but noteworthy situations , For example, a large number of safety related log |
| KERN_INFO | 6 | Information , Many drivers will use this level to print when the hardware starts Log |
| KERN_DEBUG | 7 | For printing debugging information |
2、 Dynamic modification log Grade
Get into adb shell
Use cat proc/sys/kernel/printk View the current log Grade , Such as :
![]()
Use echo 3 6 1 7 > proc/sys/kernel/printk Modify level
notes : Just change the first number , The smaller the numerical , The higher the priority .
3、 Change the default log Grade
If you modify the default log Grade , The corresponding file configuration information needs to be modified ;
File path :arch/arm/boot/dts/xxx.dts, Such as :
Just put the loglevel You can modify the value of .
边栏推荐
- What is the real future of hardware engineers?
- 【ROS2】为什么要使用ROS2?《ROS2系统特性介绍》
- The five minute demonstration "teaches" actors to speak foreign languages and can seamlessly switch languages. This AI dubbing company has just received a round a financing of 20million US dollars
- Arm register (cortex-a), coprocessor and pipeline
- Sleep quality today 67 points
- JD 7 head search navigation layout
- Understand what ICMP Protocol is
- System dilemma and software complexity: Why are our systems so complex?
- How to create a handy vs Code?
- [no title] dream notes 2022-02-20
猜你喜欢
![[learn shell programming easily]-5. Plan tasks](/img/6f/8067d4201f0c2e7a692d89885e3ad9.png)
[learn shell programming easily]-5. Plan tasks

3dmax软件的制作木桶过程:三步流程

We cannot activate inspection type for article master in transaction code MM41?

What is cloud primordial?

Acwing / 2004. Mauvaise écriture

System dilemma and software complexity: Why are our systems so complex?

Query process of MySQL secondary index

Ctfhub web information disclosure directory traversal

Viewing Chinese science and technology from the Winter Olympics (V): the Internet of things

Kubernetes cluster dashboard & kuboard installation demo
随机推荐
How to find happiness in programming and get lasting motivation?
Cs4344/ht5010 stereo d/a digital to analog converter
Viewing Chinese science and technology from the Winter Olympics (V): the Internet of things
ACWING/2004. Misspelling
Power representation in go language
DataX tutorial (09) - how does dataX achieve speed limit?
Usage of STL map
[ros2] Why use ros2? Introduction to ros2 system characteristics
SAP QM executes the transaction code qp01, and the system reports an error -material type food is not defined for task list type Q-
mysql 表查询json数据
What is cloud primordial?
Navicat防止新建查询误删
Cs8683 (120W mono class D power amplifier IC)
The most basic difference between clustering and classification.
[acnoi2022] the structure of President Wang
ASP. Net core - encrypted configuration in asp NET Core
Three laws of go reflection
Analysis of China's food cold chain logistics, output of quick-frozen noodles and rice products and operation of major enterprises in 2021 [figure]
Wan Yin revealed that he was rejected by MIT in this way: "the department doesn't like you". He confronted the principal and realized
Kubernetes cluster dashboard & kuboard installation demo