Commit fe4658779d57c11c47b3a67e9ea65df870f6640a
1 parent
644dccd5
make anb_log vompil under Anubis 1.19
Showing
3 changed files
with
8 additions
and
4 deletions
Show diff stats
src/anb_log.aproj
| @@ -8,6 +8,10 @@ | @@ -8,6 +8,10 @@ | ||
| 8 | <AssemblyName>anb_log</AssemblyName> | 8 | <AssemblyName>anb_log</AssemblyName> |
| 9 | <StartupObject>src\logger_server.anubis</StartupObject> | 9 | <StartupObject>src\logger_server.anubis</StartupObject> |
| 10 | <IncludePaths>./%3b./src</IncludePaths> | 10 | <IncludePaths>./%3b./src</IncludePaths> |
| 11 | + <MakeUsedFile>False</MakeUsedFile> | ||
| 12 | + <MakeUnusedFile>False</MakeUnusedFile> | ||
| 13 | + <AnubiscVerbosity>False</AnubiscVerbosity> | ||
| 14 | + <AnubisPath>c:\anubis\1.19\</AnubisPath> | ||
| 11 | </PropertyGroup> | 15 | </PropertyGroup> |
| 12 | <PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> | 16 | <PropertyGroup Condition=" '$(Configuration)' == 'Debug' "> |
| 13 | <OutputPath>bin\Debug\</OutputPath> | 17 | <OutputPath>bin\Debug\</OutputPath> |
src/src/logger_server.anubis
| @@ -129,8 +129,8 @@ define Maybe(Logger) | @@ -129,8 +129,8 @@ define Maybe(Logger) | ||
| 129 | if find_int32 (msg, "FILE_LEVEL") is {failure then logError(anb_logger, "create_logger_from_message can't find FILE_LEVEL");failure,success(_fileLevel) then | 129 | if find_int32 (msg, "FILE_LEVEL") is {failure then logError(anb_logger, "create_logger_from_message can't find FILE_LEVEL");failure,success(_fileLevel) then |
| 130 | if find_int32 (msg, "CONS_LEVEL") is {failure then logError(anb_logger, "create_logger_from_message can't find CONS_LEVEL");failure,success(_consoleLevel) then | 130 | if find_int32 (msg, "CONS_LEVEL") is {failure then logError(anb_logger, "create_logger_from_message can't find CONS_LEVEL");failure,success(_consoleLevel) then |
| 131 | 131 | ||
| 132 | - with file_level = get_LogLevel_from_value(to_Int(_fileLevel)), | ||
| 133 | - with console_level = get_LogLevel_from_value(to_Int(_consoleLevel)), | 132 | + with file_level = to_LogLevel(to_Int(_fileLevel)), |
| 133 | + with console_level = to_LogLevel(to_Int(_consoleLevel)), | ||
| 134 | with final_file_path = base_directory + fileName, | 134 | with final_file_path = base_directory + fileName, |
| 135 | make_directories(final_file_path); | 135 | make_directories(final_file_path); |
| 136 | logInfo(anb_logger, "create_logger_from_message logger name ["+loggerName+"] format size["+formatting_size+"] file name["+fileName+"] file level ["+get_log_level_char(file_level)+"] console level ["+get_log_level_char(console_level)+"]"); | 136 | logInfo(anb_logger, "create_logger_from_message logger name ["+loggerName+"] format size["+formatting_size+"] file name["+fileName+"] file level ["+get_log_level_char(file_level)+"] console level ["+get_log_level_char(console_level)+"]"); |
| @@ -208,7 +208,7 @@ define Bool | @@ -208,7 +208,7 @@ define Bool | ||
| 208 | if find_int32 (msg, "LEVEL") is {failure then logError(log, "process_log can't find LEVEL");false, success(int_level) then | 208 | if find_int32 (msg, "LEVEL") is {failure then logError(log, "process_log can't find LEVEL");false, success(int_level) then |
| 209 | if find_int32 (msg, "THREAD_ID") is {failure then logError(log, "process_log can't find THREAD_ID");false, success(thread_id) then | 209 | if find_int32 (msg, "THREAD_ID") is {failure then logError(log, "process_log can't find THREAD_ID");false, success(thread_id) then |
| 210 | 210 | ||
| 211 | - with level = get_LogLevel_from_value(to_Int(int_level)), | 211 | + with level = to_LogLevel(to_Int(int_level)), |
| 212 | if level is logTrace then | 212 | if level is logTrace then |
| 213 | if find_string(msg, "LOG_MASK") is | 213 | if find_string(msg, "LOG_MASK") is |
| 214 | { | 214 | { |