Skip to content

Commit

Permalink
Changing company name
Browse files Browse the repository at this point in the history
  • Loading branch information
noizebox committed Mar 27, 2023
1 parent 42d6ac1 commit 2712a04
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 50 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ElkLog
Logger library with support for logging both non-realtime and realtime threads. ElkLog uses spdlog internally but adds features specifically for logging in Elk Audio OS.
Logger library with support for logging both non-realtime and realtime threads. ElkLog uses spdlog internally but adds features specifically for logging from Elk Audio OS.

Copyright 2020 - 2023 Modern Ancient Instruments Networked AB, dba Elk, Stockholm, Sweden.
Copyright 2020-2023 Elk Audio AB, Stockholm, Sweden.

## Usage

Expand Down Expand Up @@ -36,5 +36,3 @@ if (elklog::StaticLogger::init_logger("log.txt", "example_logger", "debug") == e
## License

ElkLog is licensed under the GNU General Public License v3 (“GPLv3”). Commercial licenses are available on request at [email protected].

Copyright 2020-2023 Modern Ancient Instruments Networked AB, dba Elk, Stockholm, Sweden.
14 changes: 7 additions & 7 deletions include/elklog/elk_logger.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020-2023 Modern Ancient Instruments Networked AB, dba Elk
* Copyright 2020-2023 Elk Audio AB
* ElkLog is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
Expand All @@ -19,11 +19,11 @@
* Provides a unified logger abstraction that is safe to call in any context
* (either RT or non-RT).
*
* @copyright Copyright 2020-2023 Elk AB, Stockholm
* @copyright Copyright 2020-2023 Elk Audio AB, Stockholm
*/

#ifndef ALOHA_LOGGER_H
#define ALOHA_LOGGER_H
#ifndef ELK_LOGGER_H
#define ELK_LOGGER_H

#include <memory>
#include <string>
Expand Down Expand Up @@ -332,7 +332,7 @@ class ElkLogger
std::promise<bool> _closed_promise;
};

} // namespace aloha
} // namespace elklog

#else // ELKLOG_DISABLE_LOGGING

Expand Down Expand Up @@ -379,8 +379,8 @@ class ElkLogger
{}
};

} // namespace aloha
} // namespace elklog

#endif // ELKLOG_DISABLE_LOGGING

#endif /* ALOHA_LOGGER_H */
#endif /* ELK_LOGGER_H */
6 changes: 3 additions & 3 deletions include/elklog/log_return_code.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020-2023 Modern Ancient Instruments Networked AB, dba Elk
* Copyright 2020-2023 Elk Audio AB
* ElkLog is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
Expand All @@ -15,7 +15,7 @@
/**
* @brief Log initialization return codes
*
* @copyright Copyright 2020-2023 Elk AB, Stockholm
* @copyright Copyright 2020-2023 Elk Audio AB, Stockholm
*/

#ifndef LOG_RETURN_CODE_H
Expand Down Expand Up @@ -57,7 +57,7 @@ inline std::ostream& operator << (std::ostream& o, const Status& c)
return o;
}

} // namespace aloha
} // namespace elklog


#endif /* LOG_RETURN_CODE_H */
10 changes: 5 additions & 5 deletions include/elklog/rtlogger.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020-2023 Modern Ancient Instruments Networked AB, dba Elk
* Copyright 2020-2023 Elk Audio AB
* ElkLog is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
Expand All @@ -18,7 +18,7 @@
*
* Not safe to log messages from multiple RT threads at the same time.
*
* @copyright Copyright 2020-2023 Elk AB, Stockholm
* @copyright Copyright 2020-2023 Elk Audio AB, Stockholm
*/

#ifndef RT_LOGGER_H
Expand Down Expand Up @@ -152,11 +152,11 @@ class RtLogger
RtLogLevel _min_log_level;
};

} // namespace aloha
} // namespace elklog

#else // ELKLOG_DISABLE_LOGGING

namespace aloha {
namespace elklog {

template<size_t message_len, size_t fifo_size>
class RtLogger
Expand Down Expand Up @@ -191,7 +191,7 @@ class RtLogger

};

} // namespace aloha
} // namespace elklog

#endif // ELKLOG_DISABLE_LOGGING

Expand Down
6 changes: 3 additions & 3 deletions include/elklog/rtloglevel.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020-2023 Modern Ancient Instruments Networked AB, dba Elk
* Copyright 2020-2023 Elk Audio AB
* ElkLog is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
Expand All @@ -15,7 +15,7 @@
/**
* @brief RT-logger levels
*
* @copyright Copyright 2020-2023 Elk AB, Stockholm
* @copyright Copyright 2020-2023 Elk Audio AB, Stockholm
*/

#ifndef RTLOGLEVEL_H
Expand Down Expand Up @@ -57,7 +57,7 @@ inline std::ostream& operator << (std::ostream& o, const RtLogLevel& l)
}


} // namespace aloha
} // namespace elklog


#endif /* RTLOGLEVEL_H */
6 changes: 3 additions & 3 deletions include/elklog/rtlogmessage.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020-2023 Modern Ancient Instruments Networked AB, dba Elk
* Copyright 2020-2023 Elk Audio AB
* ElkLog is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
Expand All @@ -15,7 +15,7 @@
/**
* @brief RT-safe class to pass around Log Messages
*
* @copyright Copyright 2020-2023 Elk AB, Stockholm
* @copyright Copyright 2020-2023 Elk Audio AB, Stockholm
*/

#ifndef RTLOGMESSAGE_H
Expand Down Expand Up @@ -128,6 +128,6 @@ inline std::ostream& operator << (std::ostream& o, const RtLogMessage<buffer_len
}


} // namespace aloha
} // namespace elklog

#endif /* RTLOGMESSAGE_H */
4 changes: 2 additions & 2 deletions include/elklog/spinlock.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020-2023 Modern Ancient Instruments Networked AB, dba Elk
* Copyright 2020-2023 Elk Audio AB
* ElkLog is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
Expand All @@ -14,7 +14,7 @@

/**
* @brief Basic spinlock implementation safe for xenomai use
* @copyright 2017-2023 Elk AB, Stockholm
* @copyright 2017-2023 Elk Audio AB, Stockholm
*/

#ifndef ELKLOG_SPINLOCK_H
Expand Down
6 changes: 2 additions & 4 deletions include/elklog/static_logger.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020-2023 Modern Ancient Instruments Networked AB, dba Elk
* Copyright 2020-2023 Elk Audio AB
* ElkLog is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
Expand Down Expand Up @@ -33,16 +33,14 @@
* spdlog supports ostream style too, but that doesn't work with
* ELKLOG_DISABLE_LOGGING unfortunately
*
* @copyright Copyright 2020-2023 Elk AB, Stockholm
* @copyright Copyright 2020-2023 Elk Audio AB, Stockholm
*/

#ifndef STATIC_LOGGER_H
#define STATIC_LOGGER_H

#include "elk_logger.h"

//#define SPDLOG_DEBUG_ON // TODO - needed?

/* log macros */
#ifndef ELKLOG_DISABLE_LOGGING
//#include "spdlog/spdlog.h"
Expand Down
9 changes: 0 additions & 9 deletions include/public_header.h

This file was deleted.

8 changes: 0 additions & 8 deletions include/version.h

This file was deleted.

4 changes: 2 additions & 2 deletions src/elklog.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "elklog/static_logger.h"

namespace elklog{
namespace elklog {

ElkLogger* StaticLogger::public_instance;

}
} // namespace elklog

0 comments on commit 2712a04

Please sign in to comment.