jsnlog

What is the correct syntax for importing JSNLog using ES6?

我是研究僧i 提交于 2020-01-04 02:45:29
问题 I can't seem to figure out how to import JSNLog into my ES6 (babel) based Aurelia project. I've tried: import 'jsnlog'; // JL is undefined import JL from 'jsnlog'; // JL is {} import {JL} from 'jsnlog'; // JL is undefined If it matters I've learned that the jsnlog.js file is generated from typescript source. 回答1: The author has fixed this issue with the v2.17.1 release. 回答2: I am the author of JSNLog. Just added info to the jsnlog.com site about using ES6 import to import JSNLog into an ES6

Unable to implement JSNLog on .NET 4.5 MVC application

别等时光非礼了梦想. 提交于 2019-12-20 03:32:22
问题 Issue: I am trying to use JSNLog in MVC application(Target Framework: .NET 4.5). I am getting "JSN Log does not exist in the current context" error. I tried installing JSNLog 2.28.0 , but it was showing: Could not install package 'JSNLog 2.28.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the

Unable to implement JSNLog on .NET 4.5 MVC application

守給你的承諾、 提交于 2019-12-20 03:31:02
问题 Issue: I am trying to use JSNLog in MVC application(Target Framework: .NET 4.5). I am getting "JSN Log does not exist in the current context" error. I tried installing JSNLog 2.28.0 , but it was showing: Could not install package 'JSNLog 2.28.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the

Getting JSNLog to log with NLog

谁都会走 提交于 2019-12-11 16:42:09
问题 I am currently trying to implement a logging system for my ASP.Net application similar to this where Elmah is used to catch all of the .NET Uncaught Exceptions that happen and log them to a SQL Database, with NLog being used for the more lightweight Debug() and Info() calls that will also be logged to a SQL Server. In addition to this I wanted to add JSNLog so that I could send all my Javascript Debug/Info/Errors etc to NLog for storing in the SQL Database too. I have installed Elmah via the