Replies: 8 comments
-
hey, that sounds strange Can you please try to remove this whole line https://github.com/odygrd/quill/blob/master/examples/example_trivial.cpp#L17 and let me know if it still doesn't work ? |
Beta Was this translation helpful? Give feedback.
-
I have tried to compile it and run it on ubuntu with gcc 7.5.0 and everything compiles (except 1 test) and the example runs okay. The default logger gets initialised when |
Beta Was this translation helpful? Give feedback.
-
Hello, I have created a centos 7 instance on AWS ( https://aws.amazon.com/marketplace/pp/prodview-qkzypm3vjr45g ) I installed to this instance devtoolset-7 (https://www.softwarecollections.org/en/scls/rhscl/devtoolset-7/) and CMake. I tried to run the examples and I got a I have pushed the fixes to master and I have also fixed the compiler warnings. The examples seem to run fine on my centos 7 image now. Those errors are looking different from the ones you reported but give it a try with the latest master and let me know if you are still having issues please. |
Beta Was this translation helpful? Give feedback.
-
Thanks for looking into this.
So after your changes the examples run
But ( this is super strange)
When I copy the code and run separately the
Quill::rotating-file-handler(name, 1024,5)
call just hangs in pthread mutex lock
But the examples work
I only have quill:: start before call to file handler.
If instead I just get default logger that works
Btw if I turn on use bounded que flag, the simple logger crashes in my code
Again gcc 7.3.1 with std =c++17
…Sent from my iPhone
On Jan 25, 2023, at 3:23 PM, Odysseas Georgoudis ***@***.***> wrote:
Hello, I have created a centos 7 instance on AWS ( https://aws.amazon.com/marketplace/pp/prodview-qkzypm3vjr45g )
I installed to this image devtoolset-7 (https://www.softwarecollections.org/en/scls/rhscl/devtoolset-7/) and CMake.
I tried to run the examples and was getting a std::bad_aloc exception, it seems that gcc 7.3.1 didn't like that the static keyword was missing from some arrays.
I have pushed the fixes to master and I have also fixed the compiler warnings. The examples seem to run fine on my centos 7 image now.
Those errors are looking different from the ones you reported but give it a try with the latest master and let me know if you are still having issues please.
[image]<https://user-images.githubusercontent.com/7397786/214680550-44e82b78-3996-4bbd-b7e4-c25d0ba57a80.png>
—
Reply to this email directly, view it on GitHub<#235 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AT3Q5QGJAG6AX77WRK2D74TWUGDUTANCNFSM6AAAAAAUFPZOPE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I figured out my issue.
Was not including -DQull-no-exceptions flag in my own build where as quill was built with flag on.
It runs now, thanks for your help
…Sent from my iPhone
On Jan 25, 2023, at 5:51 PM, Manish BHARDWAJ ***@***.***> wrote:
Thanks for looking into this.
So after your changes the examples run
But ( this is super strange)
When I copy the code and run separately the
Quill::rotating-file-handler(name, 1024,5)
call just hangs in pthread mutex lock
But the examples work
I only have quill:: start before call to file handler.
If instead I just get default logger that works
Btw if I turn on use bounded que flag, the simple logger crashes in my code
Again gcc 7.3.1 with std =c++17
Sent from my iPhone
On Jan 25, 2023, at 3:23 PM, Odysseas Georgoudis ***@***.***> wrote:
Hello, I have created a centos 7 instance on AWS ( https://aws.amazon.com/marketplace/pp/prodview-qkzypm3vjr45g )
I installed to this image devtoolset-7 (https://www.softwarecollections.org/en/scls/rhscl/devtoolset-7/) and CMake.
I tried to run the examples and was getting a std::bad_aloc exception, it seems that gcc 7.3.1 didn't like that the static keyword was missing from some arrays.
I have pushed the fixes to master and I have also fixed the compiler warnings. The examples seem to run fine on my centos 7 image now.
Those errors are looking different from the ones you reported but give it a try with the latest master and let me know if you are still having issues please.
[image]<https://user-images.githubusercontent.com/7397786/214680550-44e82b78-3996-4bbd-b7e4-c25d0ba57a80.png>
—
Reply to this email directly, view it on GitHub<#235 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AT3Q5QGJAG6AX77WRK2D74TWUGDUTANCNFSM6AAAAAAUFPZOPE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
By default the library builds with exceptions on, if you are building without exceptions you need to pass The library also needs to link against Since you are using the BoundedQueue if you want to change the size of the queue you can do it by calling See https://github.com/odygrd/quill/blob/master/quill/include/quill/Config.h#L182 for all the runtime config options. for example quill::Config cfg;
cfg.default_queue_capacity = 131'072;
quill::configure(cfg);
quill::start(); Also note that if the bounded queue gets full, log messages will be dropped, in that case the library will log the number of dropped log messages to I have ran the whole test suite on Current master will be Happy you got that working, if you find any other issues please let me know! |
Beta Was this translation helpful? Give feedback.
-
A suggestion would be to add a note in documentation that if someone is turning on options( like no exceptions) they should compile their code ( which includes quill.h) with the appropriate -D flag
Otherwise looks pretty good till now. Will let you know if something else comes up. Thanks again
…Sent from my iPhone
On Jan 25, 2023, at 7:46 PM, Odysseas Georgoudis ***@***.***> wrote:
By default the library builds with exceptions on, if you are building without exceptions you need to pass add_definitions(-DQUILL_NO_EXCEPTIONS). In that case exceptions are converted to assertions.
The library also needs to link against Threads https://github.com/odygrd/quill/blob/master/quill/CMakeLists.txt#L151 but I guess you have already figured it out.
Since you are using the BoundedQueue if you want to change the size of the queue you can do it by calling quill::configure before quill::start
See https://github.com/odygrd/quill/blob/master/quill/include/quill/Config.h#L182 for all the runtime config options.
for example
quill::Config cfg;
cfg.default_queue_capacity = 131'072;
quill::configure(cfg);
quill::start();
Also note that if the bounded queue gets full, log messages will be dropped, in that case the library will log the number of dropped log messages to stderr
I have ran the whole test suite on centos 7 with gcc 7.3.1 and everything seems okay. Only one filesystem test failed which I have compiled out for now, it shouldn't be an issue bcb1440<bcb1440>
Happy you got that working, if you find any other issues please let me know!
—
Reply to this email directly, view it on GitHub<#235 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AT3Q5QHUKU3PMJ52DWWYQSTWUHCOPANCNFSM6AAAAAAUFPZOPE>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Thanks, I see what you mean, that is actually a bug in the CMakeLists. I have pushed a fix f7327e7 |
Beta Was this translation helpful? Give feedback.
-
hi - is Quill supported on Centos 7 & with gcc 7. 3.1. I run the compiler with std=c++17
It builds fine but the example_trival crashes since the default logger returned is null.
and if try to run examples for file loggers they hang on the a pthread_mutex in the quill::file_handler call.
Seems like some kinda build issue so wondering if people have seen such issues
Beta Was this translation helpful? Give feedback.
All reactions