import { consoleTransport, logger } from "react-native-logs";

const levels = {
	error: 6,
	warn: 5,
	info: 4,
	http: 3,
	verbose: 2,
	debug: 1,
	silly: 0,
};

const LOG = logger.createLogger({
	levels,
	transport: consoleTransport,
	transportOptions: {
		colors: {
			error: "redBright",
			warn: "yellowBright",
			info: "whiteBright",
			http: "blueBright",
			verbose: "cyanBright",
			debug: "greenBright",
			silly: "magentaBright",
		},
	},
	async: true,
	dateFormat: "iso",
	printLevel: true,
	printDate: true,
	enabled: true,
});

export { LOG };
