Slim down `ndncert-common.hpp`

Change-Id: Ifba0966d3787c5cbf770963b82cba054ee1fe791
diff --git a/src/detail/info-encoder.cpp b/src/detail/info-encoder.cpp
index 2a9df67..4c260b4 100644
--- a/src/detail/info-encoder.cpp
+++ b/src/detail/info-encoder.cpp
@@ -1,6 +1,6 @@
 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
 /*
- * Copyright (c) 2017-2022, Regents of the University of California.
+ * Copyright (c) 2017-2024, Regents of the University of California.
  *
  * This file is part of ndncert, a certificate management system based on NDN.
  *
@@ -20,10 +20,12 @@
 
 #include "detail/info-encoder.hpp"
 
-NDN_LOG_INIT(ndncert.encode.info);
+#include <ndn-cxx/util/logger.hpp>
 
 namespace ndncert::infotlv {
 
+NDN_LOG_INIT(ndncert.encode.info);
+
 Block
 encodeDataContent(const CaProfile& caConfig, const Certificate& certificate)
 {