mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-06 05:48:00 +03:00
27 lines
750 B
TypeScript
27 lines
750 B
TypeScript
// The Downward Spiral
|
|
const VERSION_INFO = {
|
|
major: 2,
|
|
minor: 0,
|
|
patch: 0,
|
|
name: "Mr. Self Destruct",
|
|
};
|
|
|
|
function FormatVersion() {
|
|
const { major, minor, patch, name } = VERSION_INFO;
|
|
return `v${[major, minor, patch].join(".")} (${name})`;
|
|
}
|
|
|
|
import CreateLogCtx from "./lib/logger/logger";
|
|
import server from "./server/server";
|
|
import serverConfig from "./server/server-config";
|
|
import { LOG_LEVEL } from "./lib/env/env";
|
|
|
|
|
|
const logger = CreateLogCtx(__filename);
|
|
|
|
logger.info(`Booting Kamaitachi BLACK - ${FormatVersion()} [ENV: ${process.env.NODE_ENV}]`);
|
|
logger.info(`Log level on ${LOG_LEVEL ?? "info"}.`);
|
|
|
|
server.listen(serverConfig.PORT);
|
|
logger.info(`Listening on ${serverConfig.PORT}`);
|