private void Form1_Load(object sender, EventArgs e) { logger.Log("DFASD"); logger.Error("EXCEPTION", new Exception("TEST")); var aa = System.IO.File.ReadAllText(@"log.html"); webBrowser1.DocumentText = aa; }
private void Update() { if (Input.GetKeyDown(KeyCode.Space)) { //This is just a simple test to showcase the loading manager working float start = Time.time; float max = 5; Setup(() => { Debug.Log("Loading Complete"); }, () => { float delta = (Time.time - start) / max; return(Mathf.Min(delta, 1f)); }); } if (Input.GetKeyDown(KeyCode.E)) { EngineLogger logger = new EngineLogger(); logger.Log("testLog"); } }