Giter Club home page Giter Club logo

Comments (7)

barnstee avatar barnstee commented on September 13, 2024

@eoursel:
Logs\Opc.Ua.SampleServer.log.txt should probably be Logs/Opc.Ua.SampleServer.log.txt
Can you try this out?

from ua-.netstandard.

eoursel avatar eoursel commented on September 13, 2024

Yes. I tried. But it does not change anything. The trace file is always created in /tmp/trace.log

from ua-.netstandard.

barnstee avatar barnstee commented on September 13, 2024

OK, thanks. We'll have a look...

from ua-.netstandard.

eoursel avatar eoursel commented on September 13, 2024

After a comparison with the original .NET code, i found that the method Utils.SetTraceLog() is not called by the stack in TraceConfiguration class. So the trace system is not correctly initialized.

from ua-.netstandard.

eoursel avatar eoursel commented on September 13, 2024

@barnstee, I found some issues in Opc.Ua.Core/Types/Utils/Utils.cs. While i could fix that easily, i think the code could be enhanced and secured with the usage of a portable framework which is natively supported on the .NET core platform and will be extensible such as the Microsoft.Extensions.Logging package (https://msdn.microsoft.com/en-us/magazine/mt694089.aspx).

Let me know what you think about that.

from ua-.netstandard.

barnstee avatar barnstee commented on September 13, 2024

@eoursel, thanks for figuring this one out. Let's do this: Pease submit a pull request with the easy fix and then take a stab at enhancing the logging with the new Microsoft.Extensions.Logging package. When making a major change like this, it is always important to make sure the packages are supported and working properly on all target frameworks, i.e. .Net Core, UWP, .Net 4.6.

from ua-.netstandard.

barnstee avatar barnstee commented on September 13, 2024

I believe I fixed the trace log issue. Please pull. There were several small fixes to be made. The difficulty is that in UWP, you don't have write access to the application directory, so you need to write the trace file to temp. If you want the tracefile somplease else, you need to specify an absolute path.

from ua-.netstandard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.