Guest User

Untitled

a guest
Jul 22nd, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.77 KB | None | 0 0
  1. - DeclaringMethod '((System.RuntimeType)log._loggerType).DeclaringMethod' threw an exception of type 'System.InvalidOperationException' System.Reflection.MethodBase {System.InvalidOperationException}
  2.  
  3. 2018-07-23 00:25:37.1679 Trace Scanning Property Layout ''${aspnet-request:serverVariable=REMOTE_ADDR}:${aspnet-request:serverVariable=REMOTE_PORT}'' NLog.Layouts
  4. 2018-07-23 00:25:37.1679 Trace Scanning SimpleLayout ''${aspnet-request:serverVariable=REMOTE_ADDR}:${aspnet-request:serverVariable=REMOTE_PORT}''
  5. 2018-07-23 00:25:37.1868 Trace Scanning DatabaseParameterInfo 'NLog.Targets.DatabaseParameterInfo'
  6. 2018-07-23 00:25:37.1868 Trace Scanning Property Layout ''${logger}'' NLog.Layouts
  7. 2018-07-23 00:25:37.2058 Trace Scanning SimpleLayout ''${logger}''
  8. 2018-07-23 00:25:37.2148 Trace Scanning DatabaseParameterInfo 'NLog.Targets.DatabaseParameterInfo'
  9. 2018-07-23 00:25:37.2148 Trace Scanning Property Layout ''${callsite}'' NLog.Layouts
  10. 2018-07-23 00:25:37.2367 Trace Scanning SimpleLayout ''${callsite}''
  11. 2018-07-23 00:25:37.2457 Trace Scanning DatabaseParameterInfo 'NLog.Targets.DatabaseParameterInfo'
  12. 2018-07-23 00:25:37.2457 Trace Scanning Property Layout ''${exception:tostring}'' NLog.Layouts
  13. 2018-07-23 00:25:37.2687 Trace Scanning SimpleLayout ''${exception:tostring}''
  14. 2018-07-23 00:25:37.2887 Trace Database Target[database] has 16 layouts
  15. 2018-07-23 00:25:37.3007 Trace FindReachableObject<System.Object>:
  16. 2018-07-23 00:25:37.3117 Trace Scanning SimpleLayout ''Data Source=.SQLEXPRESS;Initial Catalog=aspnet-ManagementStudio-5cb5b1db-6c48-49c7-93b2-ba81ded39c1c;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnet-ManagementStudio-5cb5b1db-6c48-49c7-93b2-ba81ded39c1c.mdf''
  17. 2018-07-23 00:25:37.3117 Trace Scanning Property Renderers 'System.Collections.ObjectModel.ReadOnlyCollection`1[NLog.LayoutRenderers.LayoutRenderer]' System.Collections.ObjectModel
  18. 2018-07-23 00:25:37.3296 Trace Scanning LiteralLayoutRenderer 'Layout Renderer: ${literal}'
  19. 2018-07-23 00:25:37.4832 Debug Watching path 'C:UsersamosaSourceReposManagementStudioManagementStudio' filter 'NLog.config' for changes.
  20. 2018-07-23 00:25:37.4936 Info Configuration initialized.
  21. 2018-07-23 00:25:37.5095 Info NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c. File version: 4.5.7.7958. Product version: 4.5.7.
  22. 2018-07-23 00:25:37.5095 Debug Targets for ManagementStudio.Controllers.UsersController by level:
  23. 2018-07-23 00:25:37.5304 Debug Trace =>
  24. 2018-07-23 00:25:37.5398 Debug Debug =>
  25. 2018-07-23 00:25:37.5398 Debug Info =>
  26. 2018-07-23 00:25:37.5598 Debug Warn =>
  27. 2018-07-23 00:25:37.5768 Debug Error =>
  28. 2018-07-23 00:25:37.5768 Debug Fatal =>
  29.  
  30. <?xml version="1.0" encoding="utf-8" ?>
  31. <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
  32. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  33. xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd"
  34. autoReload="true"
  35. throwExceptions="false"
  36. internalLogLevel="Trace" internalLogFile="c:tempnlog-internal.log">
  37.  
  38. <!-- optional, add some variables
  39. https://github.com/nlog/NLog/wiki/Configuration-file#variables
  40. -->
  41. <variable name="myvar" value="myvalue"/>
  42.  
  43. <!--
  44. See https://github.com/nlog/nlog/wiki/Configuration-file
  45. for information on customizing logging rules and outputs.
  46. -->
  47. <targets>
  48.  
  49. <!--
  50. add your targets here
  51. See https://github.com/nlog/NLog/wiki/Targets for possible targets.
  52. See https://github.com/nlog/NLog/wiki/Layout-Renderers for the possible layout renderers.
  53. -->
  54.  
  55. <!--
  56. Write events to a file with the date in the filename.
  57. <target xsi:type="File" name="f" fileName="${basedir}/logs/${shortdate}.log"
  58. layout="${longdate} ${uppercase:${level}} ${message}" />
  59. -->
  60. <target name="database" xsi:type="Database">
  61.  
  62. <connectionStringName>DefaultConnection</connectionStringName>
  63.  
  64.  
  65. <commandText>
  66. insert into dbo.AspNetEventLogs (
  67. Application, Logged, Level, Message,
  68. Username,
  69. ServerName, Port, Url, Https,
  70. ServerAddress, RemoteAddress,
  71. Logger, CallSite, Exception
  72. ) values (
  73. @Application, @Logged, @Level, @Message,
  74. @Username,
  75. @ServerName, @Port, @Url, @Https,
  76. @ServerAddress, @RemoteAddress,
  77. @Logger, @Callsite, @Exception
  78. );
  79. </commandText>
  80.  
  81. <parameter name="@application" layout="${appsetting:name=appName}" />
  82. <parameter name="@logged" layout="${date}" />
  83. <parameter name="@level" layout="${level}" />
  84. <parameter name="@message" layout="${message}" />
  85.  
  86. <parameter name="@username" layout="${identity}" />
  87.  
  88. <parameter name="@serverName" layout="${aspnet-request:serverVariable=SERVER_NAME}" />
  89. <parameter name="@port" layout="${aspnet-request:serverVariable=SERVER_PORT}" />
  90. <parameter name="@url" layout="${aspnet-request:serverVariable=HTTP_URL}" />
  91. <parameter name="@https" layout="${when:inner=1:when='${aspnet-request:serverVariable=HTTPS}' == 'on'}${when:inner=0:when='${aspnet-request:serverVariable=HTTPS}' != 'on'}" />
  92.  
  93. <parameter name="@serverAddress" layout="${aspnet-request:serverVariable=LOCAL_ADDR}" />
  94. <parameter name="@remoteAddress" layout="${aspnet-request:serverVariable=REMOTE_ADDR}:${aspnet-request:serverVariable=REMOTE_PORT}" />
  95.  
  96. <parameter name="@logger" layout="${logger}" />
  97. <parameter name="@callSite" layout="${callsite}" />
  98. <parameter name="@exception" layout="${exception:tostring}" />
  99. </target>
  100. </targets>
  101.  
  102. <rules>
  103. <logger name="database" minlevel="Debug" writeTo="database" />
  104. <!-- add your logging rules here -->
  105.  
  106. <!--
  107. Write all events with minimal level of Debug (So Debug, Info, Warn, Error and Fatal, but not Trace) to "f"
  108. <logger name="*" minlevel="Debug" writeTo="f" />
  109. -->
  110. </rules>
  111. </nlog>
Add Comment
Please, Sign In to add comment