{"id":8026,"date":"2025-09-04T21:37:14","date_gmt":"2025-09-05T02:37:14","guid":{"rendered":"https:\/\/librarytestdev.wpenginepowered.com\/?post_type=doc&#038;p=8026"},"modified":"2025-09-04T23:23:55","modified_gmt":"2025-09-05T04:23:55","slug":"logging-2","status":"publish","type":"doc","link":"https:\/\/library-staging.tradingtechnologies.com\/apis\/tt-net-sdk\/getting-started-with-tt-net-sdk\/logging-2\/","title":{"rendered":"Logging"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">TT logs messages for your application and stores them in the&nbsp;<strong>&#8216;\\Users\\ &lt;user&gt;\\Documents\\TradingTechnologies\\Logs\\ &lt;application name&gt;&#8217;<\/strong>&nbsp;directory.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can log to this file as well using the singleton&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.util.Logger.html\">Logger<\/a>&nbsp;class provided.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>tt_net_sdk.util.Logger log = tt_net_sdk.util.Logger.Instance;\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">TT also provides several methods for logging messages of various severities.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ For logging informational messages\npublic void Info(string logMessage);\npublic void Info(object logMessage);\n\n\/\/ For logging debug messages\npublic void Debug(string logMessage);\n\n\/\/ For logging warning messages\npublic void Warning(string logMessage);\n\n\/\/ For logging error messages\npublic void Error(string logMessage);\n\n\/\/ For logging critical messages\npublic void Critical(string logMessage);\n\n\/\/ For logging exception messages\npublic void LogException(Exception exception);<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"wp-block-paragraph\">TT logs messages for your application and stores them in the&nbsp;<strong>&#8216;\\Users\\ &lt;user&gt;\\Documents\\TradingTechnologies\\Logs\\ &lt;application name&gt;&#8217;<\/strong>&nbsp;directory.<\/p>\n<p class=\"wp-block-paragraph\">You can log to this file as well using the singleton&nbsp;<a href=\"\/tt-net-sdk\/api\/tt_net_sdk.util.Logger.html\">Logger<\/a>&nbsp;class provided.<\/p>\n<p class=\"wp-block-paragraph\">TT also provides several methods for logging messages of various severities.<\/p>\n<p class=\"wp-block-paragraph\">\n","protected":false},"author":2,"template":"wp-custom-template-single-doc-tt-net-sdk","meta":{"_acf_changed":true,"footnotes":""},"docs-category":[769],"class_list":["post-8026","doc","type-doc","status-publish","hentry","docs-category-getting-started-with-tt-net-sdk"],"acf":[],"_links":{"self":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc\/8026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/types\/doc"}],"author":[{"embeddable":true,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/users\/2"}],"version-history":[{"count":0,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/doc\/8026\/revisions"}],"wp:attachment":[{"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/media?parent=8026"}],"wp:term":[{"taxonomy":"docs-category","embeddable":true,"href":"https:\/\/library-staging.tradingtechnologies.com\/ja\/wp-json\/wp\/v2\/docs-category?post=8026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}