feat: add shared library build and example application
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#include <iostream>
|
||||
|
||||
#include "logger.hpp"
|
||||
|
||||
int main() {
|
||||
logger::Logger logger("app.log", logger::LogLevel::info());
|
||||
|
||||
auto status = logger.writeMessage("Hello from shared library");
|
||||
|
||||
if (!status.isSuccess()) {
|
||||
std::cerr << status.getError() << '\n';
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user