@Drakanwulf That looks pretty good. I use the following snippet for my own "new-style" libs:
Lua Code:
local LIB_IDENTIFIER = "LibDebugLogger"
assert(not _G[LIB_IDENTIFIER], LIB_IDENTIFIER .. " is already loaded")
local lib = {}
_G[LIB_IDENTIFIER] = lib
You can probably drop the second assert, since that should never ever be possible to happen, and if it does happen, you have other problems.
@Kyoma the assert is mostly in case other developers decide to start making a new addon with that name, so they get a warning right away.