brentholtsclaw
53a6221af4
Fix typehint
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2023-07-28 09:40:12 -07:00
brentholtsclaw
8378bff01b
Add ability to log outside of LOGPATH
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2023-07-26 15:32:19 -07:00
Sara Batllori
f5d4cc29c1
Add else clause to try block for better flow control
...
Signed-off-by: Sara Batllori <sara.batllori@intel.com >
2023-07-05 16:37:17 -07:00
Sara Batllori
1d30937086
Fix issues with empty log file names and logs folder creation
...
Signed-off-by: Sara Batllori <sara.batllori@intel.com >
2023-06-22 16:49:52 -07:00
Sara Batllori
474bbfd0d9
Change default log level to INFO
...
Signed-off-by: Sara Batllori <sara.batllori@intel.com >
2023-06-20 16:37:11 -07:00
Sara Batllori
5ccd4b817e
Add -nl switch to disable autologging
...
Signed-off-by: Sara Batllori <sara.batllori@intel.com >
2023-06-12 16:42:28 -07:00
Nicolas Iooss
7e19c7c89c
Remove hex_to_text from logger
...
This function was never used. Moreover it does not work with numbers
with an odd number of hexdigits because `binascii.unhexlify(f'{value:x}')`
fails with:
>>> hex_to_text(1)
binascii.Error: Odd-length string
Signed-off-by: Nicolas Iooss <nicolas.iooss_git@polytechnique.org >
2023-06-05 16:37:05 -07:00
Frinzell, Aaron
a48ad69273
Remove deprecated log_skipped()
...
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com >
2023-05-09 16:39:21 -07:00
Dan Scott
9bb892a2b5
Fix find_required_col_widths typehint
...
Signed-off-by: Dan Scott <dan.scott@intel.com >
2023-03-20 16:39:01 -07:00
Frinzell, Aaron
8d18b25680
f-string updates to /chipsec/. files
...
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com >
2023-03-15 11:27:29 -07:00
Plato Mavropoulos
82ce973186
Fix some no-member errors at logger, uefi
2023-01-30 16:39:13 -08:00
Frinzell, Aaron
4f4b82597d
Decouple banner routines from logger.py
...
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com >
2023-01-25 10:42:41 -06:00
brentholtsclaw
33e193b0ba
Disable chipsecLogger propogate
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2023-01-19 13:22:23 -08:00
brentholtsclaw
cc479e6891
Amend chipsecstreamlogger logic
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2023-01-19 13:22:23 -08:00
brentholtsclaw
81caf7b056
Update python color logic
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2023-01-19 13:22:23 -08:00
brentholtsclaw
845a7a8031
Address comments
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2023-01-19 13:22:23 -08:00
brentholtsclaw
a0e4186d9c
Change logger to use formatter
...
Add two formatting classes for stream and logfile
Add filter to apply additional labels based upon logging level
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2023-01-19 13:22:23 -08:00
brentholtsclaw
00efed8997
Addressing comments
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2023-01-18 17:12:19 -08:00
brentholtsclaw
85ff8e5865
Cleanup improper merge results
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2023-01-18 17:12:19 -08:00
brentholtsclaw
bfa3c4ee39
Decouple chipsec_main from logger
...
Remove start_test from logger
Enhance TestCase class to add start_test funtionality
Change logic within run_loaded modules to use TestCase opposed to logger
Add fstring to testcase.py
Add Type information to testcase.py
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2023-01-18 17:12:19 -08:00
Sara Batllori
c959367252
Move debug, hal and verbose log wrappers out of deprecated list
...
Signed-off-by: Sara Batllori <sara.batllori@intel.com >
2023-01-18 17:02:05 -08:00
Sara Batllori
b90667275e
Update logger to use python logging
...
Signed-off-by: Sara Batllori <sara.batllori@intel.com >
2022-12-19 14:42:43 -08:00
Frinzell, Aaron
c4f8aa95c2
Removed deprecated logger functions
...
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com >
2022-12-05 17:41:00 -06:00
Frinzell, Aaron
257cecc849
Decouple parse_args() from ChipsecMain and ChipsecUtil classes
...
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com >
2022-12-05 12:16:00 -06:00
Dan Scott
9f0b00c83a
Update 'list' typehint to typing.List
2022-10-26 10:14:23 -07:00
Dan Scott
c2098e5b2f
Add type hints to aligned_column_spacing functions
2022-10-26 10:14:23 -07:00
Dan Scott
75801e2333
Update variable and function names for clarity
2022-09-30 14:54:04 -07:00
Dan Scott
696614ecf2
Rebuild minimum column width functionality
2022-09-30 14:54:04 -07:00
Nathaniel Mitchell
8995f5dd28
Update Longname of 6xxS PCH devices
...
Signed-off-by: Dan Scott <dan.scott@intel.com >
2022-09-30 14:54:04 -07:00
brentholtsclaw
60bbe0fdb8
Remove log_Color global variable
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2022-09-29 16:03:48 -07:00
brentholtsclaw
2423f6a705
clean up merge changes
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2022-09-29 16:03:48 -07:00
BrentHoltsclaw
cdffd3c777
Add missing color argument
2022-09-29 16:03:48 -07:00
BrentHoltsclaw
767dfe30a6
Add lightgray color to wconio
2022-09-29 16:03:48 -07:00
brentholtsclaw
de1e3e6ac6
Address comments
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2022-09-29 16:03:48 -07:00
brentholtsclaw
185b644c05
Addresss unittest failures
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2022-09-29 16:03:48 -07:00
brentholtsclaw
6f0f555b2f
Update to decouple color and levels
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2022-09-29 16:03:48 -07:00
brentholtsclaw
be25ee42ec
Create setlevel function
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2022-09-29 16:03:48 -07:00
brentholtsclaw
befda4d409
Add log_hal, log_verbose, log_debug functions
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2022-09-29 16:03:48 -07:00
brentholtsclaw
c16ed01ab0
Add _log function and update log levels
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2022-09-29 16:03:48 -07:00
brentholtsclaw
8893507fbb
Create new logging levels
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2022-09-29 16:03:48 -07:00
Nathaniel Mitchell
291632c0ee
Apply flake8 code formatting rules against repo
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2022-07-28 09:17:10 -07:00
Sara Batllori
89cc29a194
Improve skipped messaging
...
Signed-off-by: Sara Batllori <sara.batllori@intel.com >
2022-07-25 17:05:29 -07:00
Frinzell, Aaron
54ed1f4784
Prep deprecation of logging methods and formatting clean up
...
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com >
2022-06-21 15:52:27 -07:00
Frinzell, Aaron
b91b3a6b4e
header
...
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com >
2022-05-17 15:36:02 -07:00
Frinzell, Aaron
4026e5c3bb
Try isatty() in logger.py
...
Signed-off-by: Frinzell, Aaron <aaron.frinzell@intel.com >
2022-05-17 15:36:02 -07:00
Gabriel Kerneis
33b34673b9
Disable colorized output when piping the output or when NO_COLOR is set ( #1395 )
...
The former case is useful if the user runs some variant of:
chipsec_main.py > chipsec.log
The latter case is defined in https://no-color.org/ and simple enough to
implement while we are improving color handling.
Signed-off-by: Gabriel Kerneis <gabriel.kerneis@ssi.gouv.fr >
2022-03-29 17:36:55 -05:00
brentholtsclaw
0e53326a83
Create exceptions.py for chipsec exceptions
...
Signed-off-by: brentholtsclaw <brent.holtsclaw@intel.com >
2021-08-26 10:50:51 -07:00
Nathaniel Mitchell
c8c14e21be
Remove shebang from all but the entry points. Update ep to py3
...
Signed-off-by: Nathaniel Mitchell <nathaniel.p.mitchell@intel.com >
2021-08-12 08:27:33 -07:00
Aaron Frinzell
51d2ea5007
Align with similar log types
2021-07-29 13:04:45 -07:00
Aaron Frinzell
153b8d8c77
Add log_error() routine
2021-07-29 13:04:45 -07:00