Table of Contents

Class Log

Namespace
Framework.Core.Logging
Assembly
Assembly-CSharp.dll

Framework 전체 공통 static 로그 진입점. string category 기반.

public static class Log
Inheritance
object
Log

Remarks

[사용법] Log.Info("Scene", "로드 시작") → [Scene] 로드 시작 출력. [금지] Debug.Log 직접 호출 — Release 빌드에서 제거되지 않는다. [Conditional] Info/Warning: UNITY_EDITOR, DEVELOPMENT_BUILD에서만 컴파일. Release 비용 없음. Error/Exception: 모든 빌드에서 출력 (Fatal 대응). [HideInCallstack]: Console 더블클릭 시 실제 호출 위치로 이동.

[Error 사용 기준] 실제 비정상 상태만 사용. Recoverable 문제는 Warning.

[비용 주의] Log 인자에서 비용 큰 함수 호출 금지. 금지: Log.Info("AI", ExpensiveOperation()); 권장: if (FrameworkBuild.IsDevelopment) Log.Info("AI", ExpensiveOperation());

Methods

Error(string, string)

심각한 오류. 모든 빌드에서 출력. [남용 금지] 실제 비정상 상태만 사용. Recoverable 문제는 Warning.

[HideInCallstack]
public static void Error(string category, string message)

Parameters

category string
message string

Exception(Exception)

예외 로그. Development: LogException(전체 stack trace). Release: LogError(Message만).

[HideInCallstack]
public static void Exception(Exception exception)

Parameters

exception Exception

Info(string, string)

정상 흐름 로그. Editor / Development Build에서만 출력.

[HideInCallstack]
[Conditional("UNITY_EDITOR")]
[Conditional("DEVELOPMENT_BUILD")]
public static void Info(string category, string message)

Parameters

category string
message string

Warning(string, string)

복구 가능한 이상 상황. Editor / Development Build에서만 출력.

[HideInCallstack]
[Conditional("UNITY_EDITOR")]
[Conditional("DEVELOPMENT_BUILD")]
public static void Warning(string category, string message)

Parameters

category string
message string