SLOG and SLOG OFF

I am using an debug initialization file in which i have written
SLOG >>E:\jyoti_AceUnit\test_projects\aceunit_logging_fullplainlogger\Samsung_with_AceUnit\OUT.TXT

using this a file out.txt is getting opened automatically but nothing is written, i have to manually use SLOG OFF and then the file contains the desired output.

But if i use the same function within the debug INIT file with
SLOG >>E:\jyoti_AceUnit\test_projects\aceunit_logging_fullplainlogger\Samsung_with_AceUnit\OUT.TXT
SLOG OFF

Nothing is getting stored in a file since serial logger gets closed as soon as it is opened

any option how to automate the opening and logging of a file using SLOG and SLOG OFF commands

Parents
  • "i have to manually use SLOG OFF and then the file contains the desired output."

    Presumably, uVision "buffers" the data internally until the file is closed?

    "Nothing is getting stored in a file since serial logger gets closed as soon as it is opened"

    So don't do that, then!

    "how to automate the opening and logging of a file using SLOG and SLOG OFF commands"

    You need to model the same as you do manually which is, presumably:

    1. SLOG ON
    2. run the test
    3. SLOG OFF

Reply
  • "i have to manually use SLOG OFF and then the file contains the desired output."

    Presumably, uVision "buffers" the data internally until the file is closed?

    "Nothing is getting stored in a file since serial logger gets closed as soon as it is opened"

    So don't do that, then!

    "how to automate the opening and logging of a file using SLOG and SLOG OFF commands"

    You need to model the same as you do manually which is, presumably:

    1. SLOG ON
    2. run the test
    3. SLOG OFF

Children
More questions in this forum