====== 10 Example ====== The [[https://code.hampel-soft.com/open-source/hse-logger|repository]] contains a small example called ''Logging with Helper-VIs.vi'' in the ''\Examples'' subdirectory. == Front Panel == | {{:code:open-source:hse-logger:hse-logger-example-1.png?direct&600|}} | == Initializing the logger and the handlers == | {{:code:open-source:hse-logger:screenshot_2024-03-05_130247.png?direct&600|}} | == Creating a log entry == | {{:code:open-source:hse-logger:hse-logger-example-3.png?direct&600|}} | == Using the EventHandler to display logs == //By using the ''LogRecord'' accessor VIs.// | {{:code:open-source:hse-logger:hse-logger-example-4.png?direct&600|}} | //By using a ''Formatter'' object and the ''Format LogRecord.vi'' method.// | {{:code:open-source:hse-logger:screenshot_2024-03-05_130453.png?direct&600|}} |