Adf.Core.Logging.LogManager.Log C# (CSharp) Method

Log() public static method

Logs the specified System.Exception with the specified user information.
public static Log ( Exception exception, IUser user = null ) : void
exception System.Exception The to log.
user IUser The user information to log.
return void
        public static void Log(Exception exception, IUser user = null)
        {
            IUser currentUser = GetCurrentUser();

            foreach (var logger in Loggers)
            {
                logger.Log(exception, user ?? currentUser);
            }
        }

Same methods

LogManager::Log ( LogLevel level, string message, IUser user = null ) : void
LogManager::Log ( string message, IUser user = null ) : void