Commit 758ddca2 by Zeng Rixuan

master

parent e8823cda
# Easylogging++使用方法学习
# Easylogging++使用方法学习
本文介绍使用easylogging++记录Linux程序运行日志的入门使用方法
[日志库EasyLogging++学习系列(1)—— 简要介绍_撒门摩尔的博客-CSDN博客](https://blog.csdn.net/samenmoer/article/details/112424520?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EOPENSEARCH%7Edefault-5.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EOPENSEARCH%7Edefault-5.control)
### **克隆Easylogging++**
下载地址:https://github.com/amrayn/easyloggingpp
(如果需要下载其他版本的Easylogging++,请[点击此处](https://www.cppku.com/?golink=aHR0cHM6Ly9naXRodWIuY29tL2Vhc3lsb2dnaW5nL2Vhc3lsb2dnaW5ncHAvcmVsZWFzZXM=)
在自定目录下使用指令克隆easyloggingpp文件:
```
git clone https://github.com/amrayn/easyloggingpp
```
easyloggingpp-9.97.0文件主要用于提供生成log所需的头文件和源文件:
```
easylogging++.h
easylogging++.cc
```
### 例程演示
使用指令克隆演示例程:
```
git clone
```
注:例程中已包含完整的easyloggingpp文件,按照demo1、demo2…步骤依次演示。
#### demo1例程对照
demo1为基于C++的HELLO例程,用于往后学习的对照:
```
./build_project.sh //编译例程,终端输出“Hello, world!”
```
#### demo2生成log文件
demo2在此前基础上加入了easyloggingpp中.h头文件(inc文件夹下)和.cc源文件,main.cpp代码如下:
```
#include "inc/easylogging++.h"
#include <iostream>
using namespace std;
INITIALIZE_EASYLOGGINGPP //使用宏 INITIALIZE_EASYLOGGINGPP 初始化,必须有且只能调用一次
//最好放置地方是程序入口函数顶部,紧跟在包含头文件后面。
int main()
{
LOG(INFO) << "***** info log *****";
cout << "Hello, world!" << endl;
return 0;
}
```
demo2演示了easyloggingpp最基础的步骤,生成log文件:
```
./build_project.sh //编译例程,终端输出“Hello, world!”
```
此时在/Build/bin文件夹下新增myeasylog.log文件,该文件记录当前运行记录。
#### demo3配置日志
main.cc代码如下:
```
#include "inc/easylogging++.h"
#include <iostream>
using namespace std;
INITIALIZE_EASYLOGGINGPP
void easylogginginit()
{
el::Configurations conf( "../../log.conf" ); // 加载配置文件,构造一个配置器对象
el::Loggers::reconfigureLogger( "default", conf ); // 用配置文件配置单一日志记录器
el::Loggers::reconfigureAllLoggers( conf ); // 用配置文件配置所有的日志记录器
}
int main()
{
easylogginginit(); //函数导入与配置
LOG(TRACE) << "***** trace log *****";
LOG(DEBUG) << "***** debug log *****";
LOG(ERROR) << "***** error log *****";
LOG(WARNING) << "***** warning log *****";
LOG(INFO) << "***** info log *****";
// LOG(FATAL) << "***** fatal log *****";//这个会导致程序退出运行
LOG(INFO) << "***** info log123 *****";
system("ls");
return 0;
}
```
log.conf配置:
```conf
* GLOBAL:
FORMAT = "%datetime:[%level] %msg"
ENABLED = true
TO_FILE = true
TO_STANDARD_OUTPUT = false
PERFORMANCE_TRACKING = false
FILENAME = "log/log_%datetime{%Y%M%d}.log"
MAX_LOG_FILE_SIZE = 209715200 ## Throw log files away after 2097152 2MB / 209715200 200MB / 4398046511104 1GB
* INFO:
FORMAT = "%datetime:[%level] %msg"
FILENAME = "log/debug_%datetime{%Y%M%d%H}.log"
* DEBUG:
FILENAME = "log/debug_log_%datetime{%Y%M%d}.log"
* WARNING:
FORMAT = "%datetime:[%level] %msg"
FILENAME = "log/warn_%datetime{%Y%M%d%H}.log"
* TRACE:
FILENAME = "log/trace_log_%datetime{%Y%M%d}.log"
* VERBOSE:
FORMAT = "%datetime{%d/%M/%y} | %level-%vlevel | %msg"
* ERROR:
FILENAME = "log/error_%datetime{%Y%M%d%H}.log"
#出现这个log会在终端上输出打印出来
TO_STANDARD_OUTPUT = true
* FATAL:
FILENAME = "log/fatal_%datetime{%Y%M%d%H}.log"
TO_STANDARD_OUTPUT = true
```
编译demo3,相比于demo2,在/Build/bin文件夹下新增log文件夹以及相关log文件,如下所示:
![1630640350703](assets/1630640350703.png)
#### demo4循环例程演示
main.cc代码如下:
```
#include "easylogging++.h"
#include <iostream>
using namespace std;
INITIALIZE_EASYLOGGINGPP
int main()
{
el::Configurations conf("../../log.conf");
el::Loggers::reconfigureLogger("default", conf);
el::Loggers::reconfigureAllLoggers(conf);
LOG(INFO) << "my easyloging is launching";
long m_ISum =0;
for (int i = 0; i < 500000000; i++)
{
m_ISum = m_ISum + i;
}
cout << " Sum is :" << m_ISum << endl;
for (int i = 0; i < 20; i++)
{
LOG(INFO) << " Index is :" << i;
}
LOG(INFO) << " Sum is :" << m_ISum;
LOG(INFO) << "my easyloging is success";
return 0;
}
```
log.conf配置:
* ```
* GLOBAL:
FORMAT = "%datetime %level [%logger] %msg"
FILENAME = "logs/Log-%datetime{%Y-%M-%d-%H-%m-%s}.log"
ENABLED = true
TO_FILE = true
TO_STANDARD_OUTPUT = true
SUBSECOND_PRECISION = 6
PERFORMANCE_TRACKING = true
MAX_LOG_FILE_SIZE = 2097152 ## 2MB - Comment starts with two hashes (##)
LOG_FLUSH_THRESHOLD = 100 ## Flush after every 100 logs
* DEBUG:
FORMAT = "%datetime{%d/%M} %func %msg"
```
编译demo4,编译结果如下:
![1630640430759](assets/1630640430759.png)
同/Build/bin/logs文件夹下生成**程序此次运行日志**:
![1630640511582](assets/1630640511582.png)
![1630640559472](assets/1630640559472.png)
\ No newline at end of file
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "opc_ua_client",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/Build/bin/OPC_UA_Server",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
\ No newline at end of file
#cmake version
cmake_minimum_required ( VERSION 3.10 )
project (HELLO)
#reset output path
set ( EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin )
set ( LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib )
set ( CMAKE_SHARED_LIBRARY_LINK_C_FLAGS )
#opcua setting
# SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -flto")
# SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -flto")
# SET(CMAKE_AR "gcc-ar")
# SET(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> qcs <TARGET> <LINK_FLAGS> <OBJECTS>")
# SET(CMAKE_C_ARCHIVE_FINISH true)
add_definitions (
# -DELPP_FEATURE_ALL
# -DELPP_FEATURE_CRASH_LOG
# #-DELPP_NO_DEFAULT_LOG_FILE
# -DELPP_THREAD_SAFE
# -DELPP_OS_UNIX
-std=c99
#-DELPP_SYSLOG
)
#set include file
include_directories (./inc)
#set source file
aux_source_directory ( . DIR_USR_SOURCE )
aux_source_directory ( ./src DIR_USR_SOURCE)
# set CC AR LD AS
set ( CMAKE_C_COMPILER $ENV{CC} )
set ( CMAKE_C_AR $ENV{AR} )
set ( CMAKE_C_LD $ENV{LD} )
#CFLAGS
set ( CMAKE_C_FLAGS "-g -std=c++11" )
set ( CMAKE_CXX_FLAGS "-g -std=c++11" )
#set debug
if(CMAKE_BUILD_TYPE STREQUAL Debug)
add_definitions (
-DPRINT_DEBUG_INFO
)
endif()
MESSAGE( STATUS "There are source files : ${DIR_USR_SOURCE}.")
#generate target
add_executable ( ${CMAKE_PROJECT_NAME} ${DIR_USR_SOURCE} )
#add custom
add_custom_target ( clean-all COMMAND rm -rf {CMAKE_BINARY_DIR}/* )
#!/bin/bash
echo "=======================Bulid helloworld Test================="
echo "$1"
echo "$2"
echo "$3"
project_path=$(cd `dirname $0`; pwd)
project_name="${project_path##*/}"
echo $project_path
echo $project_name
check_build_dir=`ls -l |grep "build"`
echo $check_build_dir
if [[ $check_build_dir =~ "Build/" ]]
then
echo "Has bulid Directroy!"
else
echo "Create Build Directory!"
mkdir -p Build
fi
#app build
cd $project_path/Build/
cmake -D CMAKE_BUILD_TYPE=$2 ..
if [[ "$1" =~ "clean" ]]
then
make clean-all
rm -rf ./*
#clear swp
cd $project_path
#python version
python -V
rtn="$?"
if [[ $rtn == "0" ]]
then
echo "python"
python cleartmp.py
else
echo "python3"
python3 cleartmp.py
fi
echo $check_python_ver
echo "====================================....clean Success....========================================="
else
echo "====================================....Build start....==============================================="
make -j 4
echo "generate program at ./Build/bin/"
echo "====================================....Build Success....========================================="
echo "press anykey to running program!"
read input
cd $project_path/Build/bin
./HELLO
fi
export XPL_OBJECT_TYPE="LINUX-X86"
export XPL_PROJECT_DIR=$(pwd)
export XPL_FEATURE_DIR=$XPL_PROJECT_DIR/feature
export XPL_PROTOCOL_DIR=$XPL_PROJECT_DIR/protocol
export CCACHE_PATH=/usr/bin:$CCACHE_PATH
export CC="gcc"
export AR="gcc-ar"
export CXX="g++"
export CPP="gcc"
export AS="as"
export GDB=gdb
export STRIP=strip
export RANLIB=ranlib
export OBJCOPY=objcopy
export OBJDUMP=objdump
#include <iostream>
using namespace std;
int main()
{
cout << "Hello, world!" << endl;
return 0;
}
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "opc_ua_client",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/Build/bin/OPC_UA_Server",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
\ No newline at end of file
set(CMAKE_C_COMPILER "/usr/bin/cc")
set(CMAKE_C_COMPILER_ARG1 "")
set(CMAKE_C_COMPILER_ID "GNU")
set(CMAKE_C_COMPILER_VERSION "9.3.0")
set(CMAKE_C_COMPILER_VERSION_INTERNAL "")
set(CMAKE_C_COMPILER_WRAPPER "")
set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "17")
set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert;c_std_17;c_std_23")
set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes")
set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros")
set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert")
set(CMAKE_C17_COMPILE_FEATURES "c_std_17")
set(CMAKE_C23_COMPILE_FEATURES "c_std_23")
set(CMAKE_C_PLATFORM_ID "Linux")
set(CMAKE_C_SIMULATE_ID "")
set(CMAKE_C_COMPILER_FRONTEND_VARIANT "")
set(CMAKE_C_SIMULATE_VERSION "")
set(CMAKE_AR "/usr/bin/ar")
set(CMAKE_C_COMPILER_AR "/usr/bin/gcc-ar-9")
set(CMAKE_RANLIB "/usr/bin/ranlib")
set(CMAKE_C_COMPILER_RANLIB "/usr/bin/gcc-ranlib-9")
set(CMAKE_LINKER "/usr/bin/ld")
set(CMAKE_MT "")
set(CMAKE_COMPILER_IS_GNUCC 1)
set(CMAKE_C_COMPILER_LOADED 1)
set(CMAKE_C_COMPILER_WORKS TRUE)
set(CMAKE_C_ABI_COMPILED TRUE)
set(CMAKE_COMPILER_IS_MINGW )
set(CMAKE_COMPILER_IS_CYGWIN )
if(CMAKE_COMPILER_IS_CYGWIN)
set(CYGWIN 1)
set(UNIX 1)
endif()
set(CMAKE_C_COMPILER_ENV_VAR "CC")
if(CMAKE_COMPILER_IS_MINGW)
set(MINGW 1)
endif()
set(CMAKE_C_COMPILER_ID_RUN 1)
set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m)
set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)
set(CMAKE_C_LINKER_PREFERENCE 10)
# Save compiler ABI information.
set(CMAKE_C_SIZEOF_DATA_PTR "8")
set(CMAKE_C_COMPILER_ABI "ELF")
set(CMAKE_C_BYTE_ORDER "LITTLE_ENDIAN")
set(CMAKE_C_LIBRARY_ARCHITECTURE "x86_64-linux-gnu")
if(CMAKE_C_SIZEOF_DATA_PTR)
set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}")
endif()
if(CMAKE_C_COMPILER_ABI)
set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}")
endif()
if(CMAKE_C_LIBRARY_ARCHITECTURE)
set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu")
endif()
set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "")
if(CMAKE_C_CL_SHOWINCLUDES_PREFIX)
set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}")
endif()
set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/9/include;/usr/local/include;/usr/include/x86_64-linux-gnu;/usr/include")
set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc;gcc_s;c;gcc;gcc_s")
set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/9;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib")
set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
set(CMAKE_CXX_COMPILER "/usr/bin/c++")
set(CMAKE_CXX_COMPILER_ARG1 "")
set(CMAKE_CXX_COMPILER_ID "GNU")
set(CMAKE_CXX_COMPILER_VERSION "9.3.0")
set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "")
set(CMAKE_CXX_COMPILER_WRAPPER "")
set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "14")
set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17;cxx_std_20")
set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters")
set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates")
set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates")
set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17")
set(CMAKE_CXX20_COMPILE_FEATURES "cxx_std_20")
set(CMAKE_CXX23_COMPILE_FEATURES "")
set(CMAKE_CXX_PLATFORM_ID "Linux")
set(CMAKE_CXX_SIMULATE_ID "")
set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "")
set(CMAKE_CXX_SIMULATE_VERSION "")
set(CMAKE_AR "/usr/bin/ar")
set(CMAKE_CXX_COMPILER_AR "/usr/bin/gcc-ar-9")
set(CMAKE_RANLIB "/usr/bin/ranlib")
set(CMAKE_CXX_COMPILER_RANLIB "/usr/bin/gcc-ranlib-9")
set(CMAKE_LINKER "/usr/bin/ld")
set(CMAKE_MT "")
set(CMAKE_COMPILER_IS_GNUCXX 1)
set(CMAKE_CXX_COMPILER_LOADED 1)
set(CMAKE_CXX_COMPILER_WORKS TRUE)
set(CMAKE_CXX_ABI_COMPILED TRUE)
set(CMAKE_COMPILER_IS_MINGW )
set(CMAKE_COMPILER_IS_CYGWIN )
if(CMAKE_COMPILER_IS_CYGWIN)
set(CYGWIN 1)
set(UNIX 1)
endif()
set(CMAKE_CXX_COMPILER_ENV_VAR "CXX")
if(CMAKE_COMPILER_IS_MINGW)
set(MINGW 1)
endif()
set(CMAKE_CXX_COMPILER_ID_RUN 1)
set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;mpp;CPP;ixx;cppm)
set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC)
foreach (lang C OBJC OBJCXX)
if (CMAKE_${lang}_COMPILER_ID_RUN)
foreach(extension IN LISTS CMAKE_${lang}_SOURCE_FILE_EXTENSIONS)
list(REMOVE_ITEM CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${extension})
endforeach()
endif()
endforeach()
set(CMAKE_CXX_LINKER_PREFERENCE 30)
set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1)
# Save compiler ABI information.
set(CMAKE_CXX_SIZEOF_DATA_PTR "8")
set(CMAKE_CXX_COMPILER_ABI "ELF")
set(CMAKE_CXX_BYTE_ORDER "LITTLE_ENDIAN")
set(CMAKE_CXX_LIBRARY_ARCHITECTURE "x86_64-linux-gnu")
if(CMAKE_CXX_SIZEOF_DATA_PTR)
set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}")
endif()
if(CMAKE_CXX_COMPILER_ABI)
set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}")
endif()
if(CMAKE_CXX_LIBRARY_ARCHITECTURE)
set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu")
endif()
set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "")
if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX)
set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}")
endif()
set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "/usr/include/c++/9;/usr/include/x86_64-linux-gnu/c++/9;/usr/include/c++/9/backward;/usr/lib/gcc/x86_64-linux-gnu/9/include;/usr/local/include;/usr/include/x86_64-linux-gnu;/usr/include")
set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;gcc_s;gcc;c;gcc_s;gcc")
set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/9;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib")
set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
set(CMAKE_HOST_SYSTEM "Linux-5.11.0-27-generic")
set(CMAKE_HOST_SYSTEM_NAME "Linux")
set(CMAKE_HOST_SYSTEM_VERSION "5.11.0-27-generic")
set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64")
set(CMAKE_SYSTEM "Linux-5.11.0-27-generic")
set(CMAKE_SYSTEM_NAME "Linux")
set(CMAKE_SYSTEM_VERSION "5.11.0-27-generic")
set(CMAKE_SYSTEM_PROCESSOR "x86_64")
set(CMAKE_CROSSCOMPILING "FALSE")
set(CMAKE_SYSTEM_LOADED 1)
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.21
# Relative path conversion top directories.
set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/root/gitlab/easylog/demo2")
set(CMAKE_RELATIVE_PATH_TOP_BINARY "/root/gitlab/easylog/demo2/Build")
# Force unix paths in dependencies.
set(CMAKE_FORCE_UNIX_PATHS 1)
# The C and CXX include file regular expressions for this directory.
set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
# Hashes of file build rules.
618373576c1cec490341cd47bb6f7156 CMakeFiles/clean-all
# Consider dependencies only in project.
set(CMAKE_DEPENDS_IN_PROJECT_ONLY OFF)
# The set of languages for which implicit dependencies are needed:
set(CMAKE_DEPENDS_LANGUAGES
)
# The set of dependency files which are needed:
set(CMAKE_DEPENDS_DEPENDENCY_FILES
"/root/gitlab/easylog/demo2/easylogging++.cc" "CMakeFiles/HELLO.dir/easylogging++.cc.o" "gcc" "CMakeFiles/HELLO.dir/easylogging++.cc.o.d"
"/root/gitlab/easylog/demo2/main.cpp" "CMakeFiles/HELLO.dir/main.cpp.o" "gcc" "CMakeFiles/HELLO.dir/main.cpp.o.d"
)
# Targets to which this target links.
set(CMAKE_TARGET_LINKED_INFO_FILES
)
# Fortran module output directory.
set(CMAKE_Fortran_TARGET_MODULE_DIR "")
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.21
# Delete rule output on recipe failure.
.DELETE_ON_ERROR:
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Disable VCS-based implicit rules.
% : %,v
# Disable VCS-based implicit rules.
% : RCS/%
# Disable VCS-based implicit rules.
% : RCS/%,v
# Disable VCS-based implicit rules.
% : SCCS/s.%
# Disable VCS-based implicit rules.
% : s.%
.SUFFIXES: .hpux_make_needs_suffix_list
# Command-line flag to silence nested $(MAKE).
$(VERBOSE)MAKESILENT = -s
#Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /snap/cmake/924/bin/cmake
# The command to remove a file.
RM = /snap/cmake/924/bin/cmake -E rm -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /root/gitlab/easylog/demo2
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /root/gitlab/easylog/demo2/Build
# Include any dependencies generated for this target.
include CMakeFiles/HELLO.dir/depend.make
# Include any dependencies generated by the compiler for this target.
include CMakeFiles/HELLO.dir/compiler_depend.make
# Include the progress variables for this target.
include CMakeFiles/HELLO.dir/progress.make
# Include the compile flags for this target's objects.
include CMakeFiles/HELLO.dir/flags.make
CMakeFiles/HELLO.dir/easylogging++.cc.o: CMakeFiles/HELLO.dir/flags.make
CMakeFiles/HELLO.dir/easylogging++.cc.o: ../easylogging++.cc
CMakeFiles/HELLO.dir/easylogging++.cc.o: CMakeFiles/HELLO.dir/compiler_depend.ts
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/gitlab/easylog/demo2/Build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object CMakeFiles/HELLO.dir/easylogging++.cc.o"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -MD -MT CMakeFiles/HELLO.dir/easylogging++.cc.o -MF CMakeFiles/HELLO.dir/easylogging++.cc.o.d -o CMakeFiles/HELLO.dir/easylogging++.cc.o -c /root/gitlab/easylog/demo2/easylogging++.cc
CMakeFiles/HELLO.dir/easylogging++.cc.i: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/HELLO.dir/easylogging++.cc.i"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /root/gitlab/easylog/demo2/easylogging++.cc > CMakeFiles/HELLO.dir/easylogging++.cc.i
CMakeFiles/HELLO.dir/easylogging++.cc.s: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/HELLO.dir/easylogging++.cc.s"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /root/gitlab/easylog/demo2/easylogging++.cc -o CMakeFiles/HELLO.dir/easylogging++.cc.s
CMakeFiles/HELLO.dir/main.cpp.o: CMakeFiles/HELLO.dir/flags.make
CMakeFiles/HELLO.dir/main.cpp.o: ../main.cpp
CMakeFiles/HELLO.dir/main.cpp.o: CMakeFiles/HELLO.dir/compiler_depend.ts
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/root/gitlab/easylog/demo2/Build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Building CXX object CMakeFiles/HELLO.dir/main.cpp.o"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -MD -MT CMakeFiles/HELLO.dir/main.cpp.o -MF CMakeFiles/HELLO.dir/main.cpp.o.d -o CMakeFiles/HELLO.dir/main.cpp.o -c /root/gitlab/easylog/demo2/main.cpp
CMakeFiles/HELLO.dir/main.cpp.i: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/HELLO.dir/main.cpp.i"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /root/gitlab/easylog/demo2/main.cpp > CMakeFiles/HELLO.dir/main.cpp.i
CMakeFiles/HELLO.dir/main.cpp.s: cmake_force
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/HELLO.dir/main.cpp.s"
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /root/gitlab/easylog/demo2/main.cpp -o CMakeFiles/HELLO.dir/main.cpp.s
# Object files for target HELLO
HELLO_OBJECTS = \
"CMakeFiles/HELLO.dir/easylogging++.cc.o" \
"CMakeFiles/HELLO.dir/main.cpp.o"
# External object files for target HELLO
HELLO_EXTERNAL_OBJECTS =
bin/HELLO: CMakeFiles/HELLO.dir/easylogging++.cc.o
bin/HELLO: CMakeFiles/HELLO.dir/main.cpp.o
bin/HELLO: CMakeFiles/HELLO.dir/build.make
bin/HELLO: CMakeFiles/HELLO.dir/link.txt
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/root/gitlab/easylog/demo2/Build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Linking CXX executable bin/HELLO"
$(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/HELLO.dir/link.txt --verbose=$(VERBOSE)
# Rule to build all files generated by this target.
CMakeFiles/HELLO.dir/build: bin/HELLO
.PHONY : CMakeFiles/HELLO.dir/build
CMakeFiles/HELLO.dir/clean:
$(CMAKE_COMMAND) -P CMakeFiles/HELLO.dir/cmake_clean.cmake
.PHONY : CMakeFiles/HELLO.dir/clean
CMakeFiles/HELLO.dir/depend:
cd /root/gitlab/easylog/demo2/Build && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /root/gitlab/easylog/demo2 /root/gitlab/easylog/demo2 /root/gitlab/easylog/demo2/Build /root/gitlab/easylog/demo2/Build /root/gitlab/easylog/demo2/Build/CMakeFiles/HELLO.dir/DependInfo.cmake --color=$(COLOR)
.PHONY : CMakeFiles/HELLO.dir/depend
file(REMOVE_RECURSE
"CMakeFiles/HELLO.dir/easylogging++.cc.o"
"CMakeFiles/HELLO.dir/easylogging++.cc.o.d"
"CMakeFiles/HELLO.dir/main.cpp.o"
"CMakeFiles/HELLO.dir/main.cpp.o.d"
"bin/HELLO"
"bin/HELLO.pdb"
)
# Per-language clean rules from dependency scanning.
foreach(lang CXX)
include(CMakeFiles/HELLO.dir/cmake_clean_${lang}.cmake OPTIONAL)
endforeach()
# Empty compiler generated dependencies file for HELLO.
# This may be replaced when dependencies are built.
# CMAKE generated file: DO NOT EDIT!
# Timestamp file for compiler generated dependencies management for HELLO.
# Empty dependencies file for HELLO.
# This may be replaced when dependencies are built.
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.21
# compile CXX with /usr/bin/c++
CXX_DEFINES =
CXX_INCLUDES = -I/root/gitlab/easylog/demo2/./inc
CXX_FLAGS = -g -std=c++11 -std=c99
/usr/bin/c++ -g -std=c++11 CMakeFiles/HELLO.dir/easylogging++.cc.o CMakeFiles/HELLO.dir/main.cpp.o -o bin/HELLO
CMAKE_PROGRESS_1 = 1
CMAKE_PROGRESS_2 = 2
CMAKE_PROGRESS_3 = 3
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.21
# The generator used is:
set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles")
# The top level Makefile was generated from the following files:
set(CMAKE_MAKEFILE_DEPENDS
"CMakeCache.txt"
"CMakeFiles/3.21.2/CMakeCCompiler.cmake"
"CMakeFiles/3.21.2/CMakeCXXCompiler.cmake"
"CMakeFiles/3.21.2/CMakeSystem.cmake"
"../CMakeLists.txt"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeCCompiler.cmake.in"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeCCompilerABI.c"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeCInformation.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeCXXCompiler.cmake.in"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeCXXCompilerABI.cpp"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeCXXInformation.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeCommonLanguageInclude.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeCompilerIdDetection.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeDetermineCCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeDetermineCXXCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeDetermineCompileFeatures.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeDetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeDetermineCompilerABI.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeDetermineCompilerId.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeDetermineSystem.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeFindBinUtils.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeGenericSystem.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeInitializeConfigs.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeLanguageInformation.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeParseImplicitIncludeInfo.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeParseImplicitLinkInfo.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeParseLibraryArchitecture.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeSystem.cmake.in"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeSystemSpecificInformation.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeSystemSpecificInitialize.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeTestCCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeTestCXXCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeTestCompilerCommon.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/CMakeUnixFindMake.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/ADSP-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/ARMCC-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/ARMClang-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/AppleClang-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/Borland-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/Bruce-C-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/CMakeCommonCompilerMacros.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/Clang-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/Clang-DetermineCompilerInternal.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/Compaq-C-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/Cray-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/Embarcadero-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/Fujitsu-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/GHS-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/GNU-C-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/GNU-C.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/GNU-CXX.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/GNU-FindBinUtils.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/GNU.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/HP-C-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/HP-CXX-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/IAR-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/Intel-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/MSVC-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/NVHPC-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/NVIDIA-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/PGI-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/PathScale-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/ROCMClang-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/SCO-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/SDCC-C-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/SunPro-C-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/TI-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/Watcom-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/XL-C-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/XL-CXX-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/XLClang-C-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/XLClang-CXX-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/zOS-C-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Internal/FeatureTesting.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Platform/Linux-Determine-CXX.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Platform/Linux-GNU-C.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Platform/Linux-GNU-CXX.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Platform/Linux-GNU.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Platform/Linux.cmake"
"/snap/cmake/924/share/cmake-3.21/Modules/Platform/UnixPaths.cmake"
)
# The corresponding makefile is:
set(CMAKE_MAKEFILE_OUTPUTS
"Makefile"
"CMakeFiles/cmake.check_cache"
)
# Byproducts of CMake generate step:
set(CMAKE_MAKEFILE_PRODUCTS
"CMakeFiles/3.21.2/CMakeSystem.cmake"
"CMakeFiles/3.21.2/CMakeCCompiler.cmake"
"CMakeFiles/3.21.2/CMakeCXXCompiler.cmake"
"CMakeFiles/3.21.2/CMakeCCompiler.cmake"
"CMakeFiles/3.21.2/CMakeCXXCompiler.cmake"
"CMakeFiles/CMakeDirectoryInformation.cmake"
)
# Dependency information for all targets:
set(CMAKE_DEPEND_INFO_FILES
"CMakeFiles/HELLO.dir/DependInfo.cmake"
"CMakeFiles/clean-all.dir/DependInfo.cmake"
)
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.21
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Disable VCS-based implicit rules.
% : %,v
# Disable VCS-based implicit rules.
% : RCS/%
# Disable VCS-based implicit rules.
% : RCS/%,v
# Disable VCS-based implicit rules.
% : SCCS/s.%
# Disable VCS-based implicit rules.
% : s.%
.SUFFIXES: .hpux_make_needs_suffix_list
# Command-line flag to silence nested $(MAKE).
$(VERBOSE)MAKESILENT = -s
#Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /snap/cmake/924/bin/cmake
# The command to remove a file.
RM = /snap/cmake/924/bin/cmake -E rm -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /root/gitlab/easylog/demo2
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /root/gitlab/easylog/demo2/Build
#=============================================================================
# Directory level rules for the build root directory
# The main recursive "all" target.
all: CMakeFiles/HELLO.dir/all
.PHONY : all
# The main recursive "preinstall" target.
preinstall:
.PHONY : preinstall
# The main recursive "clean" target.
clean: CMakeFiles/HELLO.dir/clean
clean: CMakeFiles/clean-all.dir/clean
.PHONY : clean
#=============================================================================
# Target rules for target CMakeFiles/HELLO.dir
# All Build rule for target.
CMakeFiles/HELLO.dir/all:
$(MAKE) $(MAKESILENT) -f CMakeFiles/HELLO.dir/build.make CMakeFiles/HELLO.dir/depend
$(MAKE) $(MAKESILENT) -f CMakeFiles/HELLO.dir/build.make CMakeFiles/HELLO.dir/build
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/root/gitlab/easylog/demo2/Build/CMakeFiles --progress-num=1,2,3 "Built target HELLO"
.PHONY : CMakeFiles/HELLO.dir/all
# Build rule for subdir invocation for target.
CMakeFiles/HELLO.dir/rule: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /root/gitlab/easylog/demo2/Build/CMakeFiles 3
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 CMakeFiles/HELLO.dir/all
$(CMAKE_COMMAND) -E cmake_progress_start /root/gitlab/easylog/demo2/Build/CMakeFiles 0
.PHONY : CMakeFiles/HELLO.dir/rule
# Convenience name for target.
HELLO: CMakeFiles/HELLO.dir/rule
.PHONY : HELLO
# clean rule for target.
CMakeFiles/HELLO.dir/clean:
$(MAKE) $(MAKESILENT) -f CMakeFiles/HELLO.dir/build.make CMakeFiles/HELLO.dir/clean
.PHONY : CMakeFiles/HELLO.dir/clean
#=============================================================================
# Target rules for target CMakeFiles/clean-all.dir
# All Build rule for target.
CMakeFiles/clean-all.dir/all:
$(MAKE) $(MAKESILENT) -f CMakeFiles/clean-all.dir/build.make CMakeFiles/clean-all.dir/depend
$(MAKE) $(MAKESILENT) -f CMakeFiles/clean-all.dir/build.make CMakeFiles/clean-all.dir/build
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/root/gitlab/easylog/demo2/Build/CMakeFiles --progress-num= "Built target clean-all"
.PHONY : CMakeFiles/clean-all.dir/all
# Build rule for subdir invocation for target.
CMakeFiles/clean-all.dir/rule: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /root/gitlab/easylog/demo2/Build/CMakeFiles 0
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 CMakeFiles/clean-all.dir/all
$(CMAKE_COMMAND) -E cmake_progress_start /root/gitlab/easylog/demo2/Build/CMakeFiles 0
.PHONY : CMakeFiles/clean-all.dir/rule
# Convenience name for target.
clean-all: CMakeFiles/clean-all.dir/rule
.PHONY : clean-all
# clean rule for target.
CMakeFiles/clean-all.dir/clean:
$(MAKE) $(MAKESILENT) -f CMakeFiles/clean-all.dir/build.make CMakeFiles/clean-all.dir/clean
.PHONY : CMakeFiles/clean-all.dir/clean
#=============================================================================
# Special targets to cleanup operation of make.
# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system:
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system
/root/gitlab/easylog/demo2/Build/CMakeFiles/rebuild_cache.dir
/root/gitlab/easylog/demo2/Build/CMakeFiles/edit_cache.dir
/root/gitlab/easylog/demo2/Build/CMakeFiles/HELLO.dir
/root/gitlab/easylog/demo2/Build/CMakeFiles/clean-all.dir
# Consider dependencies only in project.
set(CMAKE_DEPENDS_IN_PROJECT_ONLY OFF)
# The set of languages for which implicit dependencies are needed:
set(CMAKE_DEPENDS_LANGUAGES
)
# The set of dependency files which are needed:
set(CMAKE_DEPENDS_DEPENDENCY_FILES
)
# Targets to which this target links.
set(CMAKE_TARGET_LINKED_INFO_FILES
)
# Fortran module output directory.
set(CMAKE_Fortran_TARGET_MODULE_DIR "")
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.21
# Delete rule output on recipe failure.
.DELETE_ON_ERROR:
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Disable VCS-based implicit rules.
% : %,v
# Disable VCS-based implicit rules.
% : RCS/%
# Disable VCS-based implicit rules.
% : RCS/%,v
# Disable VCS-based implicit rules.
% : SCCS/s.%
# Disable VCS-based implicit rules.
% : s.%
.SUFFIXES: .hpux_make_needs_suffix_list
# Command-line flag to silence nested $(MAKE).
$(VERBOSE)MAKESILENT = -s
#Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /snap/cmake/924/bin/cmake
# The command to remove a file.
RM = /snap/cmake/924/bin/cmake -E rm -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /root/gitlab/easylog/demo2
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /root/gitlab/easylog/demo2/Build
# Utility rule file for clean-all.
# Include any custom commands dependencies for this target.
include CMakeFiles/clean-all.dir/compiler_depend.make
# Include the progress variables for this target.
include CMakeFiles/clean-all.dir/progress.make
CMakeFiles/clean-all:
rm -rf {CMAKE_BINARY_DIR}/*
clean-all: CMakeFiles/clean-all
clean-all: CMakeFiles/clean-all.dir/build.make
.PHONY : clean-all
# Rule to build all files generated by this target.
CMakeFiles/clean-all.dir/build: clean-all
.PHONY : CMakeFiles/clean-all.dir/build
CMakeFiles/clean-all.dir/clean:
$(CMAKE_COMMAND) -P CMakeFiles/clean-all.dir/cmake_clean.cmake
.PHONY : CMakeFiles/clean-all.dir/clean
CMakeFiles/clean-all.dir/depend:
cd /root/gitlab/easylog/demo2/Build && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /root/gitlab/easylog/demo2 /root/gitlab/easylog/demo2 /root/gitlab/easylog/demo2/Build /root/gitlab/easylog/demo2/Build /root/gitlab/easylog/demo2/Build/CMakeFiles/clean-all.dir/DependInfo.cmake --color=$(COLOR)
.PHONY : CMakeFiles/clean-all.dir/depend
file(REMOVE_RECURSE
"CMakeFiles/clean-all"
)
# Per-language clean rules from dependency scanning.
foreach(lang )
include(CMakeFiles/clean-all.dir/cmake_clean_${lang}.cmake OPTIONAL)
endforeach()
# Empty custom commands generated dependencies file for clean-all.
# This may be replaced when dependencies are built.
# CMAKE generated file: DO NOT EDIT!
# Timestamp file for custom commands dependencies management for clean-all.
# This file is generated by cmake for dependency checking of the CMakeCache.txt file
# CMAKE generated file: DO NOT EDIT!
# Generated by "Unix Makefiles" Generator, CMake Version 3.21
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
.NOTPARALLEL:
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Disable VCS-based implicit rules.
% : %,v
# Disable VCS-based implicit rules.
% : RCS/%
# Disable VCS-based implicit rules.
% : RCS/%,v
# Disable VCS-based implicit rules.
% : SCCS/s.%
# Disable VCS-based implicit rules.
% : s.%
.SUFFIXES: .hpux_make_needs_suffix_list
# Command-line flag to silence nested $(MAKE).
$(VERBOSE)MAKESILENT = -s
#Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
# The shell in which to execute make rules.
SHELL = /bin/sh
# The CMake executable.
CMAKE_COMMAND = /snap/cmake/924/bin/cmake
# The command to remove a file.
RM = /snap/cmake/924/bin/cmake -E rm -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = /root/gitlab/easylog/demo2
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = /root/gitlab/easylog/demo2/Build
#=============================================================================
# Targets provided globally by CMake.
# Special rule for the target rebuild_cache
rebuild_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
/snap/cmake/924/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : rebuild_cache
# Special rule for the target rebuild_cache
rebuild_cache/fast: rebuild_cache
.PHONY : rebuild_cache/fast
# Special rule for the target edit_cache
edit_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
/snap/cmake/924/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : edit_cache
# Special rule for the target edit_cache
edit_cache/fast: edit_cache
.PHONY : edit_cache/fast
# The main all target
all: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start /root/gitlab/easylog/demo2/Build/CMakeFiles /root/gitlab/easylog/demo2/Build//CMakeFiles/progress.marks
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 all
$(CMAKE_COMMAND) -E cmake_progress_start /root/gitlab/easylog/demo2/Build/CMakeFiles 0
.PHONY : all
# The main clean target
clean:
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 clean
.PHONY : clean
# The main clean target
clean/fast: clean
.PHONY : clean/fast
# Prepare targets for installation.
preinstall: all
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall
# Prepare targets for installation.
preinstall/fast:
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall
.PHONY : preinstall/fast
# clear depends
depend:
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
.PHONY : depend
#=============================================================================
# Target rules for targets named HELLO
# Build rule for target.
HELLO: cmake_check_build_system
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 HELLO
.PHONY : HELLO
# fast build rule for target.
HELLO/fast:
$(MAKE) $(MAKESILENT) -f CMakeFiles/HELLO.dir/build.make CMakeFiles/HELLO.dir/build
.PHONY : HELLO/fast
#=============================================================================
# Target rules for targets named clean-all
# Build rule for target.
clean-all: cmake_check_build_system
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 clean-all
.PHONY : clean-all
# fast build rule for target.
clean-all/fast:
$(MAKE) $(MAKESILENT) -f CMakeFiles/clean-all.dir/build.make CMakeFiles/clean-all.dir/build
.PHONY : clean-all/fast
easylogging++.o: easylogging++.cc.o
.PHONY : easylogging++.o
# target to build an object file
easylogging++.cc.o:
$(MAKE) $(MAKESILENT) -f CMakeFiles/HELLO.dir/build.make CMakeFiles/HELLO.dir/easylogging++.cc.o
.PHONY : easylogging++.cc.o
easylogging++.i: easylogging++.cc.i
.PHONY : easylogging++.i
# target to preprocess a source file
easylogging++.cc.i:
$(MAKE) $(MAKESILENT) -f CMakeFiles/HELLO.dir/build.make CMakeFiles/HELLO.dir/easylogging++.cc.i
.PHONY : easylogging++.cc.i
easylogging++.s: easylogging++.cc.s
.PHONY : easylogging++.s
# target to generate assembly for a file
easylogging++.cc.s:
$(MAKE) $(MAKESILENT) -f CMakeFiles/HELLO.dir/build.make CMakeFiles/HELLO.dir/easylogging++.cc.s
.PHONY : easylogging++.cc.s
main.o: main.cpp.o
.PHONY : main.o
# target to build an object file
main.cpp.o:
$(MAKE) $(MAKESILENT) -f CMakeFiles/HELLO.dir/build.make CMakeFiles/HELLO.dir/main.cpp.o
.PHONY : main.cpp.o
main.i: main.cpp.i
.PHONY : main.i
# target to preprocess a source file
main.cpp.i:
$(MAKE) $(MAKESILENT) -f CMakeFiles/HELLO.dir/build.make CMakeFiles/HELLO.dir/main.cpp.i
.PHONY : main.cpp.i
main.s: main.cpp.s
.PHONY : main.s
# target to generate assembly for a file
main.cpp.s:
$(MAKE) $(MAKESILENT) -f CMakeFiles/HELLO.dir/build.make CMakeFiles/HELLO.dir/main.cpp.s
.PHONY : main.cpp.s
# Help Target
help:
@echo "The following are some of the valid targets for this Makefile:"
@echo "... all (the default if no target is provided)"
@echo "... clean"
@echo "... depend"
@echo "... edit_cache"
@echo "... rebuild_cache"
@echo "... clean-all"
@echo "... HELLO"
@echo "... easylogging++.o"
@echo "... easylogging++.i"
@echo "... easylogging++.s"
@echo "... main.o"
@echo "... main.i"
@echo "... main.s"
.PHONY : help
#=============================================================================
# Special targets to cleanup operation of make.
# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system:
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
.PHONY : cmake_check_build_system
2021-09-02 10:36:08,244 INFO [default] ***** info log *****
# Install script for directory: /root/gitlab/easylog/demo2
# Set the install prefix
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX "/usr/local")
endif()
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
# Set the install configuration name.
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
if(BUILD_TYPE)
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
else()
set(CMAKE_INSTALL_CONFIG_NAME "")
endif()
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
endif()
# Set the component getting installed.
if(NOT CMAKE_INSTALL_COMPONENT)
if(COMPONENT)
message(STATUS "Install component: \"${COMPONENT}\"")
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
else()
set(CMAKE_INSTALL_COMPONENT)
endif()
endif()
# Install shared libraries without execute permission?
if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
set(CMAKE_INSTALL_SO_NO_EXE "1")
endif()
# Is this installation the result of a crosscompile?
if(NOT DEFINED CMAKE_CROSSCOMPILING)
set(CMAKE_CROSSCOMPILING "FALSE")
endif()
# Set default install directory permissions.
if(NOT DEFINED CMAKE_OBJDUMP)
set(CMAKE_OBJDUMP "/usr/bin/objdump")
endif()
if(CMAKE_INSTALL_COMPONENT)
set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
else()
set(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
endif()
string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
"${CMAKE_INSTALL_MANIFEST_FILES}")
file(WRITE "/root/gitlab/easylog/demo2/Build/${CMAKE_INSTALL_MANIFEST}"
"${CMAKE_INSTALL_MANIFEST_CONTENT}")
#cmake version
cmake_minimum_required ( VERSION 3.10 )
project (HELLO)
#reset output path
set ( EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin )
set ( LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib )
set ( CMAKE_SHARED_LIBRARY_LINK_C_FLAGS )
#opcua setting
# SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -flto")
# SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -flto")
# SET(CMAKE_AR "gcc-ar")
# SET(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> qcs <TARGET> <LINK_FLAGS> <OBJECTS>")
# SET(CMAKE_C_ARCHIVE_FINISH true)
add_definitions (
# -DELPP_FEATURE_ALL
# -DELPP_FEATURE_CRASH_LOG
# #-DELPP_NO_DEFAULT_LOG_FILE
# -DELPP_THREAD_SAFE
# -DELPP_OS_UNIX
-std=c99
#-DELPP_SYSLOG
)
#set include file
include_directories (./inc)
#set source file
aux_source_directory ( . DIR_USR_SOURCE )
aux_source_directory ( ./src DIR_USR_SOURCE)
# set CC AR LD AS
set ( CMAKE_C_COMPILER $ENV{CC} )
set ( CMAKE_C_AR $ENV{AR} )
set ( CMAKE_C_LD $ENV{LD} )
#CFLAGS
set ( CMAKE_C_FLAGS "-g -std=c++11" )
set ( CMAKE_CXX_FLAGS "-g -std=c++11" )
#set debug
if(CMAKE_BUILD_TYPE STREQUAL Debug)
add_definitions (
-DPRINT_DEBUG_INFO
)
endif()
MESSAGE( STATUS "There are source files : ${DIR_USR_SOURCE}.")
#generate target
add_executable ( ${CMAKE_PROJECT_NAME} ${DIR_USR_SOURCE} )
#add custom
add_custom_target ( clean-all COMMAND rm -rf {CMAKE_BINARY_DIR}/* )
#!/bin/bash
echo "=======================Bulid helloworld Test================="
echo "$1"
echo "$2"
echo "$3"
project_path=$(cd `dirname $0`; pwd)
project_name="${project_path##*/}"
echo $project_path
echo $project_name
check_build_dir=`ls -l |grep "build"`
echo $check_build_dir
if [[ $check_build_dir =~ "Build/" ]]
then
echo "Has bulid Directroy!"
else
echo "Create Build Directory!"
mkdir -p Build
fi
#app build
cd $project_path/Build/
cmake -D CMAKE_BUILD_TYPE=$2 ..
if [[ "$1" =~ "clean" ]]
then
make clean-all
rm -rf ./*
#clear swp
cd $project_path
#python version
python -V
rtn="$?"
if [[ $rtn == "0" ]]
then
echo "python"
python cleartmp.py
else
echo "python3"
python3 cleartmp.py
fi
echo $check_python_ver
echo "====================================....clean Success....========================================="
else
echo "====================================....Build start....==============================================="
make -j 4
echo "generate program at ./Build/bin/"
echo "====================================....Build Success....========================================="
echo "press anykey to running program!"
read input
cd $project_path/Build/bin
./HELLO
fi
This source diff could not be displayed because it is too large. You can view the blob instead.
export XPL_OBJECT_TYPE="LINUX-X86"
export XPL_PROJECT_DIR=$(pwd)
export XPL_FEATURE_DIR=$XPL_PROJECT_DIR/feature
export XPL_PROTOCOL_DIR=$XPL_PROJECT_DIR/protocol
export CCACHE_PATH=/usr/bin:$CCACHE_PATH
export CC="gcc"
export AR="gcc-ar"
export CXX="g++"
export CPP="gcc"
export AS="as"
export GDB=gdb
export STRIP=strip
export RANLIB=ranlib
export OBJCOPY=objcopy
export OBJDUMP=objdump
This source diff could not be displayed because it is too large. You can view the blob instead.
#include "inc/easylogging++.h"
#include <iostream>
using namespace std;
INITIALIZE_EASYLOGGINGPP
int main()
{
cout << "Hello, world!" << endl;
LOG(INFO) << "***** info log *****";
return 0;
}
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "opc_ua_client",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/Build/bin/OPC_UA_Server",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
\ No newline at end of file
#cmake version
cmake_minimum_required ( VERSION 3.10 )
project (HELLO)
#reset output path
set ( EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin )
set ( LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib )
set ( CMAKE_SHARED_LIBRARY_LINK_C_FLAGS )
#opcua setting
# SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -flto")
# SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -flto")
# SET(CMAKE_AR "gcc-ar")
# SET(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> qcs <TARGET> <LINK_FLAGS> <OBJECTS>")
# SET(CMAKE_C_ARCHIVE_FINISH true)
add_definitions (
# -DELPP_FEATURE_ALL
# -DELPP_FEATURE_CRASH_LOG
# #-DELPP_NO_DEFAULT_LOG_FILE
# -DELPP_THREAD_SAFE
# -DELPP_OS_UNIX
-std=c99
#-DELPP_SYSLOG
)
#set include file
include_directories (./inc)
#set source file
aux_source_directory ( . DIR_USR_SOURCE )
aux_source_directory ( ./src DIR_USR_SOURCE)
# set CC AR LD AS
set ( CMAKE_C_COMPILER $ENV{CC} )
set ( CMAKE_C_AR $ENV{AR} )
set ( CMAKE_C_LD $ENV{LD} )
#CFLAGS
set ( CMAKE_C_FLAGS "-g -std=c++11" )
set ( CMAKE_CXX_FLAGS "-g -std=c++11" )
#set debug
if(CMAKE_BUILD_TYPE STREQUAL Debug)
add_definitions (
-DPRINT_DEBUG_INFO
)
endif()
MESSAGE( STATUS "There are source files : ${DIR_USR_SOURCE}.")
#generate target
add_executable ( ${CMAKE_PROJECT_NAME} ${DIR_USR_SOURCE} )
#add custom
add_custom_target ( clean-all COMMAND rm -rf {CMAKE_BINARY_DIR}/* )
#!/bin/bash
echo "=======================Bulid helloworld Test================="
echo "$1"
echo "$2"
echo "$3"
project_path=$(cd `dirname $0`; pwd)
project_name="${project_path##*/}"
echo $project_path
echo $project_name
check_build_dir=`ls -l |grep "build"`
echo $check_build_dir
if [[ $check_build_dir =~ "Build/" ]]
then
echo "Has bulid Directroy!"
else
echo "Create Build Directory!"
mkdir -p Build
fi
#app build
cd $project_path/Build/
cmake -D CMAKE_BUILD_TYPE=$2 ..
if [[ "$1" =~ "clean" ]]
then
make clean-all
rm -rf ./*
#clear swp
cd $project_path
#python version
python -V
rtn="$?"
if [[ $rtn == "0" ]]
then
echo "python"
python cleartmp.py
else
echo "python3"
python3 cleartmp.py
fi
echo $check_python_ver
echo "====================================....clean Success....========================================="
else
echo "====================================....Build start....==============================================="
make -j 4
echo "generate program at ./Build/bin/"
echo "====================================....Build Success....========================================="
echo "press anykey to running program!"
read input
cd $project_path/Build/bin
./HELLO
fi
This source diff could not be displayed because it is too large. You can view the blob instead.
export XPL_OBJECT_TYPE="LINUX-X86"
export XPL_PROJECT_DIR=$(pwd)
export XPL_FEATURE_DIR=$XPL_PROJECT_DIR/feature
export XPL_PROTOCOL_DIR=$XPL_PROJECT_DIR/protocol
export CCACHE_PATH=/usr/bin:$CCACHE_PATH
export CC="gcc"
export AR="gcc-ar"
export CXX="g++"
export CPP="gcc"
export AS="as"
export GDB=gdb
export STRIP=strip
export RANLIB=ranlib
export OBJCOPY=objcopy
export OBJDUMP=objdump
This source diff could not be displayed because it is too large. You can view the blob instead.
#include "inc/easylogging++.h"
#include <iostream>
using namespace std;
INITIALIZE_EASYLOGGINGPP
int main()
{
/*/
必须设置标记 LoggingFlag::StrictLogFileSizeCheck
否则,配置文件中MAX_LOG_FILE_SIZE = 1048576不生效
/*/
el::Loggers::addFlag(el::LoggingFlag::StrictLogFileSizeCheck);
el::Configurations conf("../../my_log.conf");
/// 可以单独设置某一个logger的配置
el::Loggers::reconfigureLogger("default", conf);
/// 也可以设置全部logger的配置
el::Loggers::reconfigureAllLoggers(conf);
LOG(INFO) << "***** info log *****";
cout << "Hello, world!" << endl;
return 0;
}
* GLOBAL:
ENABLED = true
TO_FILE = true
TO_STANDARD_OUTPUT = true
FORMAT = "[%level | %datetime] | %msg"
FILENAME = "./log_%datetime{%Y%M%d}.log"
MILLISECONDS_WIDTH = 3
PERFORMANCE_TRACKING = false
MAX_LOG_FILE_SIZE = 1048576
LOG_FLUSH_THRESHOLD = 0
* TRACE:
FILENAME = "log/trace_log_%datetime{%Y%M%d}.log"
* DEBUG:
FILENAME = "log/debug_log_%datetime{%Y%M%d}.log"
* FATAL:
ENABLED = false
* ERROR:
FILENAME = "log/error_log_%datetime{%Y%M%d}.log"
* WARNING:
FILENAME = "log/warning_log_%datetime{%Y%M%d}.log"
* INFO:
FILENAME = "log/info_log_%datetime{%Y%M%d}.log"
* VERBOSE:
ENABLED = false
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "opc_ua_client",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/Build/bin/OPC_UA_Server",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
\ No newline at end of file
#cmake version
cmake_minimum_required ( VERSION 3.10 )
project (HELLO)
#reset output path
set ( EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin )
set ( LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib )
set ( CMAKE_SHARED_LIBRARY_LINK_C_FLAGS )
#opcua setting
# SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -flto")
# SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -flto")
# SET(CMAKE_AR "gcc-ar")
# SET(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> qcs <TARGET> <LINK_FLAGS> <OBJECTS>")
# SET(CMAKE_C_ARCHIVE_FINISH true)
add_definitions (
# -DELPP_FEATURE_ALL
# -DELPP_FEATURE_CRASH_LOG
# #-DELPP_NO_DEFAULT_LOG_FILE
# -DELPP_THREAD_SAFE
# -DELPP_OS_UNIX
-std=c99
#-DELPP_SYSLOG
)
#set include file
include_directories (./inc)
#set source file
aux_source_directory ( . DIR_USR_SOURCE )
aux_source_directory ( ./src DIR_USR_SOURCE)
# set CC AR LD AS
set ( CMAKE_C_COMPILER $ENV{CC} )
set ( CMAKE_C_AR $ENV{AR} )
set ( CMAKE_C_LD $ENV{LD} )
#CFLAGS
set ( CMAKE_C_FLAGS "-g -std=c++11" )
set ( CMAKE_CXX_FLAGS "-g -std=c++11" )
#set debug
if(CMAKE_BUILD_TYPE STREQUAL Debug)
add_definitions (
-DPRINT_DEBUG_INFO
)
endif()
MESSAGE( STATUS "There are source files : ${DIR_USR_SOURCE}.")
#generate target
add_executable ( ${CMAKE_PROJECT_NAME} ${DIR_USR_SOURCE} )
#add custom
add_custom_target ( clean-all COMMAND rm -rf {CMAKE_BINARY_DIR}/* )
#!/bin/bash
echo "=======================Bulid helloworld Test================="
echo "$1"
echo "$2"
echo "$3"
project_path=$(cd `dirname $0`; pwd)
project_name="${project_path##*/}"
echo $project_path
echo $project_name
check_build_dir=`ls -l |grep "build"`
echo $check_build_dir
if [[ $check_build_dir =~ "Build/" ]]
then
echo "Has bulid Directroy!"
else
echo "Create Build Directory!"
mkdir -p Build
fi
#app build
cd $project_path/Build/
cmake -D CMAKE_BUILD_TYPE=$2 ..
if [[ "$1" =~ "clean" ]]
then
make clean-all
rm -rf ./*
#clear swp
cd $project_path
#python version
python -V
rtn="$?"
if [[ $rtn == "0" ]]
then
echo "python"
python cleartmp.py
else
echo "python3"
python3 cleartmp.py
fi
echo $check_python_ver
echo "====================================....clean Success....========================================="
else
echo "====================================....Build start....==============================================="
make -j 4
echo "generate program at ./Build/bin/"
echo "====================================....Build Success....========================================="
echo "press anykey to running program!"
read input
cd $project_path/Build/bin
./HELLO
fi
This source diff could not be displayed because it is too large. You can view the blob instead.
export XPL_OBJECT_TYPE="LINUX-X86"
export XPL_PROJECT_DIR=$(pwd)
export XPL_FEATURE_DIR=$XPL_PROJECT_DIR/feature
export XPL_PROTOCOL_DIR=$XPL_PROJECT_DIR/protocol
export CCACHE_PATH=/usr/bin:$CCACHE_PATH
export CC="gcc"
export AR="gcc-ar"
export CXX="g++"
export CPP="gcc"
export AS="as"
export GDB=gdb
export STRIP=strip
export RANLIB=ranlib
export OBJCOPY=objcopy
export OBJDUMP=objdump
This source diff could not be displayed because it is too large. You can view the blob instead.
* GLOBAL:
FORMAT = "%datetime %level [%logger] %msg"
FILENAME = "logs/Log-%datetime{%Y-%M-%d-%H-%m-%s}.log"
ENABLED = true
TO_FILE = true
TO_STANDARD_OUTPUT = true
SUBSECOND_PRECISION = 6
PERFORMANCE_TRACKING = true
MAX_LOG_FILE_SIZE = 2097152 ## 2MB - Comment starts with two hashes (##)
LOG_FLUSH_THRESHOLD = 100 ## Flush after every 100 logs
* DEBUG:
FORMAT = "%datetime{%d/%M} %func %msg"
#include "easylogging++.h"
#include <iostream>
using namespace std;
INITIALIZE_EASYLOGGINGPP
int main()
{
el::Configurations conf("../../log.conf");
el::Loggers::reconfigureLogger("default", conf);
el::Loggers::reconfigureAllLoggers(conf);
LOG(INFO) << "my easyloging is launching";
long m_ISum =0;
for (int i = 0; i < 500000000; i++)
{
m_ISum = m_ISum + i;
}
cout << " Sum is :" << m_ISum << endl;
for (int i = 0; i < 20; i++)
{
LOG(INFO) << " Index is :" << i;
}
LOG(INFO) << " Sum is :" << m_ISum;
LOG(INFO) << "my easyloging is success";
return 0;
}
\ No newline at end of file
easylogging++
\ No newline at end of file
Easylogging++ v9.33 RELEASE NOTES
---------------------------------
=========================
= REFACTORING =
=========================
- Includes <locale> only when UNICODE is enabled
==========================
= NOTES =
==========================
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.65 RELEASE NOTES
---------------------------------
Release type: Minor
API changes: No
==========================
= NEW FEATURES =
==========================
- Ability to create loggers on the fly `LoggingFlag::CreateLoggerAutomatically`
==========================
= NOTES =
==========================
- See https://github.com/easylogging/easyloggingpp/blob/v9.65/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.66 RELEASE NOTES
---------------------------------
Release type: Minor
API changes: No
========================
= BUG FIXES =
========================
- Verbose fix when using `Logger::verbose`
==========================
= IMPROVEMENTS =
==========================
- Changed `func` and `file` to `FUNCTION` and `FILE` respectively
==========================
= NOTES =
==========================
- See https://github.com/easylogging/easyloggingpp/blob/v9.66/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.67 RELEASE NOTES
---------------------------------
Release type: Minor
API changes: No
===========================
= IMPROVEMENTS =
===========================
- Fix to file stream handling if unable to create file stream
- Fixed android (NDK) build warnings
==========================
= NOTES =
==========================
- See https://github.com/easylogging/easyloggingpp/blob/v9.67/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.68 RELEASE NOTES
---------------------------------
Release type: Minor
API changes: No
===========================
= IMPROVEMENTS =
===========================
- Ability to change internal debugging macro
==========================
= NOTES =
==========================
- See https://github.com/easylogging/easyloggingpp/blob/v9.68/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.69 RELEASE NOTES
---------------------------------
Release type: Minor
API changes: Yes
===========================
= IMPROVEMENTS =
===========================
- Multiple log dispatch call backs by extending `el::LogDispatchCallback`
- Ability to log from `el::LogDispatchCallback` with no problems with recursive calls
==========================
= NOTES =
==========================
- See https://github.com/easylogging/easyloggingpp/blob/v9.69/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.70 RELEASE NOTES
---------------------------------
Release type: Minor
API changes: Yes
===========================
= IMPROVEMENTS =
===========================
- Improvements to `PerformanceTrackingCallback` - multiple callbacks
- Removed ability to log from log dispatch and performance tracking callbacks since it causes issue in multi-threaded applications
============================
= REMOVED =
============================
- Removed `el::LoggingFlag::EnableLogDispatchCallback` as it is always enabled now since its used internally
- Removed `el::LoggingFlag::DisablePerformanceTrackingDispatch` as you can do it other way (see samples)
- Removed `el::LoggingFlag::PerformanceTrackingCallback` as it is always enabled now since its used internally
==========================
= NOTES =
==========================
- See https://github.com/easylogging/easyloggingpp/blob/v9.70/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.71 RELEASE NOTES
---------------------------------
Release type: Minor
API changes: No
========================
= BUG FIXES =
========================
- Fix to `PERFORMANCE_CHECKPOINT`
==========================
= NOTES =
==========================
- See https://github.com/easylogging/easyloggingpp/blob/v9.71/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.72 RELEASE NOTES
---------------------------------
Release type: Minor
API changes: No
========================
= BUG FIXES =
========================
- Using easylogging++ fails in conjunction with WIN32_LEAN_AND_MEAN (issue #171)
==========================
= NOTES =
==========================
- See https://github.com/easylogging/easyloggingpp/blob/v9.72/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.73 RELEASE NOTES
---------------------------------
Release type: Minor
API changes: No
===========================
= NEW FEATURES =
===========================
- Ability to add spaces automatically (issue #179)
==========================
= NOTES =
==========================
- See https://github.com/easylogging/easyloggingpp/blob/v9.73/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.74 RELEASE NOTES
---------------------------------
Release type: Minor
API changes: No
===========================
= NEW FEATURES =
===========================
- `fbase` format specifier
- VModule clear module function
- `levshort` format specifier
==========================
= BUG FIXES =
==========================
- Fixes issue with `AutoSpacing` with timing facilities
==========================
= NOTES =
==========================
- See https://github.com/easylogging/easyloggingpp/blob/v9.74/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.75 RELEASE NOTES
---------------------------------
Release type: Minor
API changes: No
==========================
= BUG FIXES =
==========================
- Makes Mutex non-copyable (issue #191)
- Fixes issue with `DefaultPerformanceTrackingCallback` (issue #190)
- Fix build for VS2013 under high warnings [warning level 4] (issue #194)
- Fixes a lot of reference to temporary warnings
==========================
= NOTES =
==========================
- See https://github.com/easylogging/easyloggingpp/blob/v9.75/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.76 RELEASE NOTES
---------------------------------
Release type: Major
API changes: No
==========================
= NEW FEATURES =
==========================
- Experimental asynchronous logging using `_ELPP_EXPERIMENTAL_ASYNC_LOGGING` (issue #202)
- `CHECK_BOUNDS` macro to check boundaries (issue #204)
==========================
= API CHANGES =
==========================
- `Logger::flush(Level, base::type::fstream_t)` and `Logger::isFlushNeeded(Level)` made public
==========================
= NOTES =
==========================
- See https://github.com/easylogging/easyloggingpp/blob/v9.76/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
- Removed references to `easylogging.org` as site will no longer service.
Easylogging++ v9.77 RELEASE NOTES
---------------------------------
Release type: Major
API changes: No
==========================
= BUG FIXES =
==========================
- Using _ELPP_DISABLE_ASSERT breaks config file parsing (issue #218)
==========================
= NEW FEATURES =
==========================
- Support for unique unit of measure in performance tracking (issue #208)
- Changing default format from a more localized %d/%M/%Y to ISO 8601 standard (issue #200)
==========================
= BUILD FIX =
==========================
- Warning fix for `sleep`
==========================
= NOTES =
==========================
- Changed donation policy
- See https://github.com/easylogging/easyloggingpp/blob/v9.77/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.78 RELEASE NOTES
---------------------------------
Release type: Minor
API changes: No
==========================
= NEW FEATURES =
==========================
- Ability to add, clear verbose modules on the fly (issue #219)
- Ability to set verbose logging level on the fly (issue #238)
- Solaris support added
==========================
= BUILD FIX =
==========================
- Warning for `nextTok_` in VS2013 (issue #237)
==========================
= BUG FIX =
==========================
- `LoggingFlag::AutoSpacing` does not work with some types (issue #220)
==========================
= NOTES =
==========================
- Experimental async logging only for specific compilers
- Removed `easyloggingpp` as namespace
- Changed support email address
- See https://github.com/easylogging/easyloggingpp/blob/v9.78/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.79 RELEASE NOTES
---------------------------------
Release type: Major
API changes: Yes
==========================
= NEW FEATURES =
==========================
- Ability to use `winsock2.h` when `ELPP_WINSOCK2` defined
==========================
= API CHANGES =
==========================
- All the names starting with underscore (_) are updated to not use underscore in the beginning (issue #239)
- `_START_EASYLOGGINGPP` => `START_EASYLOGGINGPP`
- `_INITIALIZE_EASYLOGGINGPP` => `INITIALIZE_EASYLOGGINGPP`
- `_INITIALIZE_NULL_EASYLOGGINGPP` => `INITIALIZE_NULL_EASYLOGGINGPP`
- `_SHARE_EASYLOGGINGPP` => `SHARE_EASYLOGGINGPP`
- `_ELPP_INITI_BASIC_DECLR` => `ELPP_INITI_BASIC_DECLR`
- `_ELPP_INIT_EASYLOGGINGPP` => `ELPP_INIT_EASYLOGGINGPP`
- `_ELPP_DISABLE_DEFAULT_CRASH_HANDLING` => `ELPP_DISABLE_DEFAULT_CRASH_HANDLING`
- `_ELPP_DISABLE_ASSERT` => `ELPP_DISABLE_ASSERT`
- `_ELPP_DEBUG_ASSERT_FAILURE` => `ELPP_DEBUG_ASSERT_FAILURE`
- `_ELPP_STACKTRACE_ON_CRASH` => `ELPP_STACKTRACE_ON_CRASH`
- `_ELPP_EXPORT_SYMBOLS` => `ELPP_EXPORT_SYMBOLS`
- `_ELPP_AS_DLL` => `ELPP_AS_DLL`
- `_ELPP_FORCE_USE_STD_THREAD` => `ELPP_FORCE_USE_STD_THREAD`
- `_ELPP_LOGGING_FLAGS_FROM_ARG` => `ELPP_LOGGING_FLAGS_FROM_ARG`
- `_ELPP_DISABLE_LOGS` => `ELPP_DISABLE_LOGS`
- `_ELPP_DISABLE_DEBUG_LOGS` => `ELPP_DISABLE_DEBUG_LOGS`
- `_ELPP_DISABLE_INFO_LOGS` => `ELPP_DISABLE_INFO_LOGS`
- `_ELPP_DISABLE_WARNING_LOGS` => `ELPP_DISABLE_WARNING_LOGS`
- `_ELPP_DISABLE_ERROR_LOGS` => `ELPP_DISABLE_ERROR_LOGS`
- `_ELPP_DISABLE_FATAL_LOGS` => `ELPP_DISABLE_FATAL_LOGS`
- `_ELPP_DISABLE_TRACE_LOGS` => `ELPP_DISABLE_TRACE_LOGS`
- `_ELPP_DISABLE_VERBOSE_LOGS` => `ELPP_DISABLE_VERBOSE_LOGS`
- `_ELPP_SYSLOG` => `ELPP_SYSLOG`
- `_INIT_SYSLOG` => `ELPP_INITIALIZE_SYSLOG`
- `_ELPP_UNICODE` => `ELPP_UNICODE`
- `_ELPP_EXPERIMENTAL_ASYNC` => `ELPP_EXPERIMENTAL_ASYNC`
- `_ELPP_THREAD_SAFE` => `ELPP_THREAD_SAFE`
- `_ELPP_STL_LOGGING` => `ELPP_STL_LOGGING`
- `_ELPP_LOG_STD_ARRAY` => `ELPP_LOG_STD_ARRAY`
- `_ELPP_LOG_UNORDERED_MAP` => `ELPP_LOG_UNORDERED_MAP`
- `_ELPP_LOG_UNORDERED_MAP` => `ELPP_LOG_UNORDERED_SET`
- `_ELPP_QT_LOGGING` => `ELPP_QT_LOGGING`
- `_ELPP_BOOST_LOGGING` => `ELPP_BOOST_LOGGING`
- `_ELPP_WXWIDGETS_LOGGING` => `ELPP_WXWIDGETS_LOGGING`
- `_ELPP_DEFAULT_LOG_FILE` => `ELPP_DEFAULT_LOG_FILE`
- `_ELPP_DISABLE_LOG_FILE_FROM_ARG` => `ELPP_DISABLE_LOG_FILE_FROM_ARG`
- `_ELPP_DEFAULT_LOG_FILE` => `ELPP_DEFAULT_LOG_FILE`
- `_ELPP_DISABLE_PERFORMANCE_TRACKING` => `ELPP_DISABLE_PERFORMANCE_TRACKING`
- `_CURRENT_FILE_PERFORMANCE_LOGGER_ID` => `ELPP_CURR_FILE_PERFORMANCE_LOGGER`
- `_ELPP_DISABLE_CONFIGURATION_FROM_PROGRAM_ARGS` => `ELPP_DISABLE_CONFIGURATION_FROM_PROGRAM_ARGS`
- `_ELPP_PERFORMANCE_MICROSECONDS` => `ELPP_PERFORMANCE_MICROSECONDS`
- `_CURRENT_FILE_LOGGER_ID` => `ELPP_DEFAULT_LOGGER`
- `_ELPP_NO_DEFAULT_LOG_FILE` => `ELPP_NO_DEFAULT_LOG_FILE`
- `_ELPP_FORCE_ENV_VAR_FROM_BASH` => `ELPP_FORCE_ENV_VAR_FROM_BASH`
- `_ELPP_DISABLE_CUSTOM_FORMAT_SPECIFIERS` => `ELPP_DISABLE_CUSTOM_FORMAT_SPECIFIERS`
- `_ELPP_HANDLE_SIGABRT` => `ELPP_HANDLE_SIGABRT`
==========================
= NOTES =
==========================
- See https://github.com/easylogging/easyloggingpp/blob/v9.79/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.80 RELEASE NOTES
---------------------------------
Release type: Minor
API changes: No
==========================
= NOTES =
==========================
- Licence update
- Email update
- See https://github.com/easylogging/easyloggingpp/blob/v9.80/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.81 RELEASE NOTES
---------------------------------
Release type: Minor
API changes: No
==========================
= BUILD FIX =
==========================
- Fix with `-Wundef` compiler flag (issue #221)
- Fix with `-Wswitch-default` compiler flag (issue #221)
- Warning fix for some unused variables
- syslog constant is no longer defined unless `ELPP_SYSLOG` is defined
- use unistd.h -> usleep for async if `std::this_thread::sleep_for` not available by defining `ELPP_NO_SLEEP_FOR` (Only async logging)
- Fixes `std::move` obsolete warning for clang++ 3.7 (issue #315)
- Crash on exit for some platforms when CTRL+C pressed (issue #261)
- Warning fix with clang3.7 (issue #335)
==========================
= NEW FEATURES =
==========================
- `ELPP_CUSTOM_COUT` to define custom standard output (e.g, `std::cerr`) (issue #201)`
- More terminal colors (for INFO, DEBUG and TRACE logs)
- CHECK_NOTNULL for smart pointers (issue #334)
- ELPP_FRESH_LOG_FILE to always start new log file (issue #384)
==========================
= NOTES =
==========================
- CHECK_NOTNULL does not return pointer anymore instead a simple check
- New sample for log rotation added
- See https://github.com/easylogging/easyloggingpp/blob/v9.81/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.82 RELEASE NOTES
---------------------------------
Release type: Minor
API changes: No
==========================
= BUILD FIX =
==========================
- Crash fix with visual C++ (issue #391)
==========================
= NOTES =
==========================
- See https://github.com/easylogging/easyloggingpp/blob/v9.82/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.83 RELEASE NOTES
---------------------------------
Release type: Minor
API changes: No
==========================
= NOTES =
==========================
- Fixes version number. Please see previous release notes for actual releases
- See https://github.com/easylogging/easyloggingpp/blob/v9.83/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.84 RELEASE NOTES
---------------------------------
Release type: Minor
API changes: No
==========================
= NOTES =
==========================
- Fixes build for xcode
- See https://github.com/easylogging/easyloggingpp/blob/v9.84/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.85 RELEASE NOTES
---------------------------------
Release type: Major
API changes: No
Breaking Change: Yes
- Performance tracker changed from object to pointer
==========================
= FIXES =
==========================
- C++17 Build fix
- Initialize uninitialized variables (cppcheck)
- Do not create any file when using `ELPP_NO_LOG_TO_FILE`
- Fix bad memory access before opening any files
- Documentation updated and fixed typos
==========================
= NEW FEATURES =
==========================
- Added conditional performance tracking via TIMED_FUNC_IF and TIMED_SCOPE_IF (#415)
==========================
= NOTES =
==========================
- Licence update
- See https://github.com/easylogging/easyloggingpp/blob/v9.85/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.86 RELEASE NOTES
---------------------------------
Release type: Major
API changes: No
Breaking Change: Yes
==========================
= NEW FEATURES =
==========================
- Stack trace and crash report now requires `ELPP_FEATURE_CRASH_LOG` macro (#409)
- Performance tracking now requires `ELPP_PERFORMANCE_TRACKING` macro defined (#409)
- do(something) || LOG(DEBUG) idiom (#426)
==========================
= FIXES =
==========================
- Do not create default file when using `ELPP_NO_LOG_TO_FILE` (completely fixed)
==========================
= NOTES =
==========================
- Licence now included in releases
- See https://github.com/easylogging/easyloggingpp/blob/v9.86/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.87 RELEASE NOTES
---------------------------------
Release type: Minor
API changes: No
Breaking Change: No
==========================
= NEW FEATURES =
==========================
- do(something) || LOG(LEVEL) idiom for `LOG_EVERY_N`, `LOG_AFTER_N` and family
==========================
= NOTES =
==========================
- See https://github.com/easylogging/easyloggingpp/blob/v9.87/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
Easylogging++ v9.88 RELEASE NOTES
---------------------------------
Release type: Minor
API changes: No
Breaking Change: No
==========================
= INTERNAL =
==========================
- Some type refactors for better results
- Exposing some functions for external use
==========================
= NOTES =
==========================
- See https://github.com/easylogging/easyloggingpp/blob/v9.88/README.md for manual for this release
- See https://github.com/easylogging/easyloggingpp/tree/master/doc for other release notes
- Closed issues: https://github.com/easylogging/easyloggingpp/issues?page=1&state=closed
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment