Compare commits

..

No commits in common. "43723a6a0012036ba5bbf99bd9fdf5aa9f4899db" and "e012ffce1d0e91cd4e36ca282a263c3e1e28c8f2" have entirely different histories.

3 changed files with 2 additions and 38 deletions

View File

@ -29,7 +29,4 @@ AWS_ACCESS_KEY_ID="AKIA3K4QWLZHFZRJOM2E"
AWS_SECRET_ACCESS_KEY="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"
NEXT_PUBLIC_AWS_S3_BASE_URL="//files.hanasys.jp"
S3_PROFILE="dev"
#logging
NEXT_PUBLIC_ENABLE_LOGGING=true
S3_PROFILE="dev"

View File

@ -30,7 +30,4 @@ AWS_ACCESS_KEY_ID="AKIA3K4QWLZHFZRJOM2E"
AWS_SECRET_ACCESS_KEY="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"
NEXT_PUBLIC_AWS_S3_BASE_URL="//files.hanasys.jp"
S3_PROFILE="prd"
#logging
NEXT_PUBLIC_ENABLE_LOGGING=false
S3_PROFILE="prd"

View File

@ -1,30 +0,0 @@
// utils/logger.js
const isLoggingEnabled = process.env.NEXT_PUBLIC_ENABLE_LOGGING === 'true';
export const logger = {
log: (...args) => {
if (isLoggingEnabled) {
console.log(...args);
}
},
error: (...args) => {
// 에러는 항상 로깅하거나, 또는 환경에 따라 다르게 처리
console.error(...args);
// 운영 환경에서는 서버로 에러를 보내는 코드를 추가할 수도 있음
},
warn: (...args) => {
if (isLoggingEnabled) {
console.warn(...args);
}
},
info: (...args) => {
if (isLoggingEnabled) {
console.info(...args);
}
},
debug: (...args) => {
if (isLoggingEnabled) {
console.debug(...args);
}
}
};