24 lines
1020 B
TypeScript
24 lines
1020 B
TypeScript
// Metro module 5991 (f5992).
|
|
import DeveloperOptionsStore from "../../../stores/DeveloperOptionsStore";
|
|
import { NOOP } from "../../../_bundle/Module505";
|
|
import Logger from "../../debug/Logger";
|
|
export function getQuestLogger(r5 = {}) {
|
|
const { quest, location: location2 } = r5;
|
|
const r10 = quest == null ? void 0 : quest.config.messages.questName;
|
|
const r17 = location2 != null;
|
|
let r9 = "";
|
|
const r8 = r17 ? `-${location2}` : "";
|
|
if (r10 != null) {
|
|
r9 = `-${r10})`;
|
|
}
|
|
const logger = new Logger(`QuestLogger${r8}${r9}`);
|
|
return {
|
|
log: DeveloperOptionsStore.isLoggingQuestEvents ? logger.log : NOOP,
|
|
warn: DeveloperOptionsStore.isLoggingQuestEvents ? logger.warn : NOOP,
|
|
error: DeveloperOptionsStore.isLoggingQuestEvents ? logger.error : NOOP,
|
|
info: DeveloperOptionsStore.isLoggingQuestEvents ? logger.info : NOOP,
|
|
verbose: DeveloperOptionsStore.isLoggingQuestEvents ? logger.verbose : NOOP,
|
|
trace: DeveloperOptionsStore.isLoggingQuestEvents ? logger.trace : NOOP
|
|
};
|
|
}
|