MainForm.cs 863 B

1234567891011121314151617181920212223242526272829303132333435
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using Waka.Lego.Commons;
  11. using Y.Utils.IOUtils.LogUtils;
  12. namespace Waka.Lego.Views
  13. {
  14. public partial class MainForm : Form
  15. {
  16. public MainForm()
  17. {
  18. InitializeComponent();
  19. }
  20. private void MainForm_Load(object sender, EventArgs e)
  21. {
  22. R.Log.IsWriteFile = true;
  23. R.Log.LogLevel = LogLevel.Warning | LogLevel.Debug;
  24. Log.AllocConsole();
  25. R.Log.v("this is v 啰嗦");
  26. R.Log.d("this is d 调试");
  27. R.Log.i("this is i 重要");
  28. R.Log.w("this is w 警告");
  29. R.Log.e("this is e 错误");
  30. }
  31. }
  32. }