ISEPOS-2280 Added fallback paths for base loggers
This commit is contained in:
@@ -63,7 +63,11 @@ classdef base_logger < handle
|
||||
|
||||
methods(Access=private)
|
||||
function this = base_logger()
|
||||
this.fid = fopen(getenv("APP_LOG_FILE"), 'a');
|
||||
logFileName = getenv("APP_LOG_FILE");
|
||||
if isempty(logFileName)
|
||||
logFileName = 'fallbackPathApplication.log';
|
||||
end
|
||||
this.fid = fopen(logFileName, 'a');
|
||||
if this.fid == -1
|
||||
error('Failed to open log file');
|
||||
end
|
||||
|
Reference in New Issue
Block a user