Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EnableLogCleaner not recognized #586

Closed
heavyweight87 opened this issue Oct 5, 2020 · 3 comments
Closed

EnableLogCleaner not recognized #586

heavyweight87 opened this issue Oct 5, 2020 · 3 comments

Comments

@heavyweight87
Copy link

Hi,

I find that EnableLogCleaner does not work for me as its not found.
Its missing from logger.h (its only in logger.h.in)

It seems like its been an included feature for a while so maybe im missing something?
I compiled and installed the lib according to the cmake instructions

@aesophor
Copy link
Contributor

aesophor commented Oct 5, 2020

If you followed the instructions in README.rst to build the library with CMake, the header should be installed into /usr/local/include/glog/.

$ sudo cmake --build build --target install
-- trimmed --
Install the project...
-- Install configuration: ""
-- Up-to-date: /usr/local/lib/libglog.a
-- Up-to-date: /usr/local/include/glog/logging.h
-- Up-to-date: /usr/local/include/glog/raw_logging.h
-- Up-to-date: /usr/local/include/glog/stl_logging.h
-- Up-to-date: /usr/local/include/glog/vlog_is_on.h
-- Up-to-date: /usr/local/include/glog/log_severity.h
-- Up-to-date: /usr/local/lib/pkgconfig/libglog.pc
-- Up-to-date: /usr/local/lib/cmake/glog/glog-modules.cmake
-- Up-to-date: /usr/local/lib/cmake/glog/glog-config.cmake
-- Up-to-date: /usr/local/lib/cmake/glog/glog-config-version.cmake
-- Up-to-date: /usr/local/share/glog/cmake
-- Up-to-date: /usr/local/share/glog/cmake/FindUnwind.cmake
-- Up-to-date: /usr/local/lib/cmake/glog/glog-targets.cmake
-- Up-to-date: /usr/local/lib/cmake/glog/glog-targets-noconfig.cmake

I just built it and the function prototypes are there:

$ grep 'LogCleaner' /usr/local/include/glog/logging.h 
GOOGLE_GLOG_DLL_DECL void EnableLogCleaner(int overdue_days);
GOOGLE_GLOG_DLL_DECL void DisableLogCleaner();

Can you run the command above and see if they're there?

If they're not there, please post the output of sudo cmake --build build --target install

@heavyweight87
Copy link
Author

Appologies, I was given an older version of the library (3.5) which didn't have this prototype. It works great with the latest version. Thanks

@aesophor
Copy link
Contributor

aesophor commented Oct 5, 2020

No problem! I'm glad it works great for you 😄

@sergiud sergiud mentioned this issue May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants