Rename log to logging

This commit is contained in:
2025-02-12 23:34:47 +01:00
parent e297b4182b
commit cb77cbe9ce
5 changed files with 8 additions and 9 deletions

View File

@ -1,10 +1,10 @@
cc_library( cc_library(
name = "log", name = "logging",
srcs = [ srcs = [
"log.cpp", "logging.cpp",
], ],
hdrs = [ hdrs = [
"log.hpp", "logging.hpp",
], ],
deps = [ deps = [
"//asl", "//asl",
@ -15,10 +15,10 @@ cc_library(
cc_test( cc_test(
name = "tests", name = "tests",
srcs = [ srcs = [
"log_tests.cpp" "logging_tests.cpp"
], ],
deps = [ deps = [
":log", ":logging",
"//asl/testing", "//asl/testing",
], ],
visibility = ["//visibility:public"], visibility = ["//visibility:public"],

View File

@ -1,4 +1,4 @@
#include "asl/log/log.hpp" #include "asl/logging/logging.hpp"
#include "asl/print.hpp" #include "asl/print.hpp"
#include "asl/string_builder.hpp" #include "asl/string_builder.hpp"

View File

@ -1,4 +1,4 @@
#include "asl/log/log.hpp" #include "asl/logging/logging.hpp"
#include "asl/testing/testing.hpp" #include "asl/testing/testing.hpp"
#include "asl/string_builder.hpp" #include "asl/string_builder.hpp"
@ -18,6 +18,6 @@ ASL_TEST(custom_writer)
ASL_LOG_INFO("Hello"); ASL_LOG_INFO("Hello");
auto sv = g_string_writer.as_string_view(); auto sv = g_string_writer.as_string_view();
ASL_TEST_EXPECT(sv == "[ INFO ] asl/log/log_tests.cpp:18: Hello\n"); ASL_TEST_EXPECT(sv == "[ INFO ] asl/logging/logging_tests.cpp:18: Hello\n");
} }

View File

@ -1,3 +1,2 @@
warning compare with 0 in format_float.cpp warning compare with 0 in format_float.cpp
rename log to logging
split asl into multiple sublibraries split asl into multiple sublibraries