GridJsLogger.SetLogDirectory

SetLogDirectory(string)

Sets the log directory with daily rolling file strategy and enables file output. Log files will be named as: gridjs_{period}.log

public static void SetLogDirectory(string directory)
ParameterTypeDescription
directoryStringThe directory to store log files.

See Also


SetLogDirectory(string, GridJsLogRolling)

Sets the log directory with rolling file strategy and enables file output. Log files will be named as: gridjs_{period}.log

public static void SetLogDirectory(string directory, GridJsLogRolling rolling)
ParameterTypeDescription
directoryStringThe directory to store log files.
rollingGridJsLogRollingThe rolling strategy (Daily/Weekly/Monthly).

See Also


SetLogDirectory(string, GridJsLogRolling, string)

Sets the log directory with rolling file strategy and enables file output. Log files will be named as: {prefix}_{period}.log Examples: gridjs_2026-07-27.log (Daily), gridjs_2026-W30.log (Weekly), gridjs_2026-07.log (Monthly)

public static void SetLogDirectory(string directory, GridJsLogRolling rolling, string filePrefix)
ParameterTypeDescription
directoryStringThe directory to store log files.
rollingGridJsLogRollingThe rolling strategy (Daily/Weekly/Monthly).
filePrefixStringThe file name prefix.

See Also