Code Monkey home page Code Monkey logo

Comments (5)

coussej avatar coussej commented on May 20, 2024

Passing the config file with a flag won't work, if you want to use a custom location you should set it in the Environment (see also https://superuser.com/questions/79612/setting-and-getting-windows-environment-variables-from-the-command-prompt)

However, config.toml is the default location for the config file, and from the syntax error it looks like it's not formatted correctly. The error specifies it found a {, did you perhaps use JSON instead of TOML?

Can you share the contents of the file here?

from node-opcua-logger.

jasonye87 avatar jasonye87 commented on May 20, 2024

from node-opcua-logger.

coussej avatar coussej commented on May 20, 2024

Hello,

the application determines the format based on the extension of the config file. You would set the necessary environment variable by running the following command:

set CONFIG_FILE=c:\path\to\config.json

and then in the same command line window you run the binary of the logger!

Usually, after testing config etc, you'd run the logger through a windows service. I usually suggest using nssm to do so. During the installation, you can also specify the environment variables for the service.

from node-opcua-logger.

jasonye87 avatar jasonye87 commented on May 20, 2024

from node-opcua-logger.

coussej avatar coussej commented on May 20, 2024

You're welcome!

from node-opcua-logger.

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.