Skip to content

Commit

Permalink
logger: Deprecate default logfile name
Browse files Browse the repository at this point in the history
I believe API users, and not the library, should be responsible for
setting log file name.
  • Loading branch information
m-blaha authored and jan-kolarik committed Sep 4, 2023
1 parent ad2ba99 commit 906285a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/libdnf5/logger/factory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ along with libdnf. If not, see <https://www.gnu.org/licenses/>.
namespace libdnf5 {

// File logger destination filename.
/// @deprecated The filename should be set by API user.
constexpr const char * FILE_LOGGER_FILENAME = "dnf5.log";

/// @deprecated It is going to be removed.
/// @brief Helper method for creating a file logger.
/// @param base Reference to Base for loading the configured logger path.
/// @return Instance of a new file logger.
Expand Down

0 comments on commit 906285a

Please sign in to comment.