Skip to content

Commit fe10725

Browse files
authored
Merge pull request #1084 from kabeor/dev
Add close all logs option for verbose
2 parents 132e96f + 6013feb commit fe10725

File tree

4 files changed

+30
-12
lines changed

4 files changed

+30
-12
lines changed

ChangeLog

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,31 @@ This file details the changelog of Qiling Framework.
55
[Version 1.4.2]: Jan 29th, 2022
66

77
New features:
8-
-
9-
-
8+
- Add stm32f103 support (#1087)
9+
- Add Arduino Due (SAM3X8E) Support (#1090)
1010

1111
Improvements:
12-
-
13-
-
12+
- ARM exception handler improvements (#1056)
13+
- UEFI improvements (#1061)
14+
- Qdb improvements (#1058)
15+
- Update rich api in evm dbgcui (#1062)
16+
- Add security coockies back into PE loader for kernel driver (#1063)
17+
- Fix ql_open_flag_mapping for Linux binary emulation on Windows (#1064)
18+
- Minor changes and fixes to the tracing module (#1065)
19+
- Fix unicornafl for linux_x8664 fuzzing example (#1068)
20+
- Fuzzing improvements (#1075)
21+
- Add fix and example for openat path traversion (#1076)
22+
- Fix _CreateFileA params issue (#1079)
1423

1524
Contributors:
16-
-
17-
-
25+
- nmantani
26+
- hardik05
27+
- cla7aye15I4nd
28+
- ucgJhe
29+
- elicn
30+
- wtdcode
31+
- kabeor
32+
- xwings
1833

1934

2035
------------------------------------

qiling/const.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,12 @@ class QL_OS(IntEnum):
3636
BLOB = 210
3737

3838
class QL_VERBOSE(IntEnum):
39-
OFF = 0
40-
DEFAULT = 1
41-
DEBUG = 4
42-
DISASM = 10
43-
DUMP = 20
39+
DISABLED = -1 # turn off all the output
40+
OFF = 0 # output only warnings
41+
DEFAULT = 1 # output warnings and Qiling execute process information
42+
DEBUG = 4 # output all logs above and debug information, include syscall information
43+
DISASM = 10 # output all assembly instructions during Qiling execution
44+
DUMP = 20 # output any log Qiling can, include instructions and registers
4445

4546
class QL_DEBUGGER(IntEnum):
4647
GDB = 1

qiling/core.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ def verbose(self):
534534
535535
Type: int
536536
Values:
537+
- -1 : logging.NOTSET, turn off all the output.
537538
- 0 : logging.WARNING, almost no additional logs except the program output.
538539
- >=1: logging.INFO, the default logging level.
539540
- >=4: logging.DEBUG.

qiling/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,8 @@ def profile_setup(ql):
495495

496496
def ql_resolve_logger_level(verbose: QL_VERBOSE) -> int:
497497
return {
498-
QL_VERBOSE.OFF : logging.WARNING,
498+
QL_VERBOSE.DISABLED: logging.CRITICAL,
499+
QL_VERBOSE.OFF : logging.WARNING,
499500
QL_VERBOSE.DEFAULT : logging.INFO,
500501
QL_VERBOSE.DEBUG : logging.DEBUG,
501502
QL_VERBOSE.DISASM : logging.DEBUG,

0 commit comments

Comments
 (0)