question

InigoMontoya-1790 avatar image
0 Votes"
InigoMontoya-1790 asked TimonYang-MSFT edited

NLOG Not Creating Table And Logging Errors

i've set-up nlog for the first time, and have multiple locations in there to log... this is the settings I have in my nlog but the table is never created?

 <target xsi:type="Database"
       name="DatabaseTarget"
       keepConnection="true"
       commandType="Text"
       dbDatabase="IISLogging"
       dbUserName="user"
       dbPassword="password"
       dbHost="111.111.11.1"
       commandText="INSERT INTO [Log] (Logged,Level,LogMessage,Exception,StackTrace,Path,Json,Ip) 
                    VALUES (@Logged, @Level, @Message, @Exception, @StackTrace,@Path,@Json,@Ip)">
not-supported
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@InigoMontoya-1790
Regarding NLog settings, I suggest you go to its GitHub repository or StackOverflow to ask related questions.

0 Votes 0 ·

0 Answers