From cb77cbe9ce4cddad6a460aa190ff70f0c13e4703 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Wed, 12 Feb 2025 23:34:47 +0100 Subject: [PATCH] Rename log to logging --- asl/{log => logging}/BUILD.bazel | 10 +++++----- asl/{log/log.cpp => logging/logging.cpp} | 2 +- asl/{log/log.hpp => logging/logging.hpp} | 0 asl/{log/log_tests.cpp => logging/logging_tests.cpp} | 4 ++-- todo.txt | 1 - 5 files changed, 8 insertions(+), 9 deletions(-) rename asl/{log => logging}/BUILD.bazel (70%) rename asl/{log/log.cpp => logging/logging.cpp} (97%) rename asl/{log/log.hpp => logging/logging.hpp} (100%) rename asl/{log/log_tests.cpp => logging/logging_tests.cpp} (79%) diff --git a/asl/log/BUILD.bazel b/asl/logging/BUILD.bazel similarity index 70% rename from asl/log/BUILD.bazel rename to asl/logging/BUILD.bazel index 51f41df..396da74 100644 --- a/asl/log/BUILD.bazel +++ b/asl/logging/BUILD.bazel @@ -1,10 +1,10 @@ cc_library( - name = "log", + name = "logging", srcs = [ - "log.cpp", + "logging.cpp", ], hdrs = [ - "log.hpp", + "logging.hpp", ], deps = [ "//asl", @@ -15,10 +15,10 @@ cc_library( cc_test( name = "tests", srcs = [ - "log_tests.cpp" + "logging_tests.cpp" ], deps = [ - ":log", + ":logging", "//asl/testing", ], visibility = ["//visibility:public"], diff --git a/asl/log/log.cpp b/asl/logging/logging.cpp similarity index 97% rename from asl/log/log.cpp rename to asl/logging/logging.cpp index af31a84..aa630ac 100644 --- a/asl/log/log.cpp +++ b/asl/logging/logging.cpp @@ -1,4 +1,4 @@ -#include "asl/log/log.hpp" +#include "asl/logging/logging.hpp" #include "asl/print.hpp" #include "asl/string_builder.hpp" diff --git a/asl/log/log.hpp b/asl/logging/logging.hpp similarity index 100% rename from asl/log/log.hpp rename to asl/logging/logging.hpp diff --git a/asl/log/log_tests.cpp b/asl/logging/logging_tests.cpp similarity index 79% rename from asl/log/log_tests.cpp rename to asl/logging/logging_tests.cpp index b174fd3..ebbf800 100644 --- a/asl/log/log_tests.cpp +++ b/asl/logging/logging_tests.cpp @@ -1,4 +1,4 @@ -#include "asl/log/log.hpp" +#include "asl/logging/logging.hpp" #include "asl/testing/testing.hpp" #include "asl/string_builder.hpp" @@ -18,6 +18,6 @@ ASL_TEST(custom_writer) ASL_LOG_INFO("Hello"); 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"); } diff --git a/todo.txt b/todo.txt index f9a36ff..ffec3b3 100644 --- a/todo.txt +++ b/todo.txt @@ -1,3 +1,2 @@ warning compare with 0 in format_float.cpp -rename log to logging split asl into multiple sublibraries