static void Main(string[] args) { try { Log.Info("Hello, NLog!"); Log.Debug("This is a debug message."); Log.Warn("This is a warning message."); MyMath.Sin(Math.PI); MyMath.Sin(Math.PI / 2); MyMath.Sin(double.PositiveInfinity); } catch (Exception ex) { Log.Error(ex, "Goodbye cruel world."); } }
/// <summary>Returns the sine of the angle value at index location 0.</summary> public virtual double Of(double[] d, int numParam) { return(MyMath.Sin(d[0])); }