llvm
4ef071d3 - [UR] added filename and line number to logs (#17684)

Commit
324 days ago
[UR] added filename and line number to logs (#17684) Added an option to print line number and filename in log file. When `fileline:1` is specified in an environment variable describing log, e.g: ``` UR_LOG_LEVEL_ZERO="level:debug;flush:warning;fileline:1;output:file,juju-l0.log" ``` then every log entry will have source file and line added, like below: ``` ZE ---> zeInit(L0InitFlags) </home/user/llvm/unified-runtime/source/adapters/level_zero/common.cpp:141> ``` The significant changes are contained in the following files: - [ur_logger.hpp](https://github.com/intel/llvm/pull/17684/files#diff-2cb7f14c8cfa4e2d535a2d61e44f131cd55adb286fb14f229c0a628ab58fd8bc) - [ur_logger_details.hpp](https://github.com/intel/llvm/pull/17684/files#diff-a9f5f027ecf3e6c32c4c616a911bfe9d1924d07534e3a413794b4810a81d587e) - [ur_sinks.hpp](https://github.com/intel/llvm/pull/17684/files#diff-cb8b65e2254bc8e470f55997651ff1e11e94d0fcfd627db9a2a6b44f8bc2ef30) - [CMakeList.txt](https://github.com/intel/llvm/pull/17684/files#diff-3fbef7232733940192079cea1f55c07bce36e5e1c42b341d3583fbbf392ceef7) In the remaining files, the calls to the logger functions are replaced by macros (basically automatic change) --------- Co-authored-by: Łukasz Ślusarczyk <lukasz.slusarczyk@intel.com>
Author
Parents
Loading