Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/logging/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Neo4j:Windows服务包装器实际上记录了什么吗?_Windows_Logging_Neo4j_Wrapper - Fatal编程技术网

Neo4j:Windows服务包装器实际上记录了什么吗?

Neo4j:Windows服务包装器实际上记录了什么吗?,windows,logging,neo4j,wrapper,Windows,Logging,Neo4j,Wrapper,我正在尝试调试Neo4j社区服务器的服务包装器,无论我尝试了什么,都不会生成日志文件。Windows包装器是否实际生成日志条目?文档引用了neo4j包装,但没有引用windows包装 操作系统:Windows 8.1或Windows Server 2012 R2 Neo4j:2.1.4或2.1.7社区 我将日志记录级别更改为所有可能的位置,生成的唯一日志文件是/data/neo4j.0.0.log,它似乎只包含有关HTTP端点的信息和/data/graph.db/messages.log,它没有

我正在尝试调试Neo4j社区服务器的服务包装器,无论我尝试了什么,都不会生成日志文件。Windows包装器是否实际生成日志条目?文档引用了neo4j包装,但没有引用windows包装

操作系统:Windows 8.1或Windows Server 2012 R2

Neo4j:2.1.4或2.1.7社区

我将日志记录级别更改为所有可能的位置,生成的唯一日志文件是/data/neo4j.0.0.log,它似乎只包含有关HTTP端点的信息和/data/graph.db/messages.log,它没有对包装器的引用。我希望找到一个名为/data/log/windows-wrapper.0.0.log的日志文件

你知道我做错了什么吗

windows-wrapper.logging.properties

# Properties file which configures the operation of the JDK logging facility. # The system will look for this config file, first using a System property # specified at startup: # # >java -Djava.util.logging.config.file=myLoggingConfigFilePath # # If this property is not specified, then the config file is retrieved from its # default location at: # JDK_HOME/jre/lib/logging.properties # Global logging properties. # ------------------------------------------ # The set of handlers to be loaded upon startup. # Comma-separated list of class names. # (? LogManager docs say no comma here, but JDK example has comma.) #handlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler handlers=java.util.logging.FileHandler # Default global logging level. # Loggers and Handlers may override this level # SERVERE, INFO, FINE, FINEST .level=ALL # Loggers # ------------------------------------------ # Loggers are usually attached to packages. # Here, the level for each package is specified. # The global level is used by default, so levels specified here simply act as # an override. org.neo4j.server.level=ALL # Handlers # ----------------------------------------- # --- ConsoleHandler --- # Override of global logging level java.util.logging.ConsoleHandler.level=ALL java.util.logging.ConsoleHandler.formatter=org.neo4j.server.logging.SimpleConsoleFormatter java.util.logging.ConsoleHandler.filter=org.neo4j.server.logging.NeoLogFilter # --- FileHandler --- # Override of global logging level java.util.logging.FileHandler.level=ALL # Naming style for the output file (the output file is placed in the directory # defined by the "user.home" System property): # "/" the local pathname separator # "%t" the system temporary directory # "%h" the value of the "user.home" system property # "%g" the generation number to distinguish rotated logs # "%u" a unique number to resolve conflicts # "%%" translates to a single percent sign "%" java.util.logging.FileHandler.pattern=data/log/windows-wrapper.%u.%g.log # Specifies whether the FileHandler should append onto any existing files # (defaults to false): java.util.logging.FileHandler.append=true # Limiting size of output file in bytes (10M): java.util.logging.FileHandler.limit=10000000 # Number of output files to cycle through, by appending an integer to the base # file name: java.util.logging.FileHandler.count=10 # The name of the character set encoding to use (defaults to the default # platform encoding): #java.util.logging.FileHandler.encoding= # Style of output (Simple or XML): java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter # Properties file which configures the operation of the JDK # logging facility. # The system will look for this config file, first using # a System property specified at startup: # # >java -Djava.util.logging.config.file=myLoggingConfigFilePath # # If this property is not specified, then the config file is # retrieved from its default location at: # JDK_HOME/jre/lib/logging.properties # Global logging properties. # ------------------------------------------ # The set of handlers to be loaded upon startup. # Comma-separated list of class names. # (? LogManager docs say no comma here, but JDK example has comma.) handlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler #handlers=java.util.logging.ConsoleHandler # Default global logging level. # Loggers and Handlers may override this level # SEVERE, INFO, FINE, FINEST .level=ALL # Loggers # ------------------------------------------ # Loggers are usually attached to packages. # Here, the level for each package is specified. # The global level is used by default, so levels specified here simply act as # an override. org.neo4j.server.level=ALL # Handlers # ----------------------------------------- # --- ConsoleHandler --- # Override of global logging level java.util.logging.ConsoleHandler.level=ALL java.util.logging.ConsoleHandler.formatter=org.neo4j.server.logging.SimpleConsoleFormatter #java.util.logging.ConsoleHandler.filter=org.neo4j.server.logging.NeoLogFilter # --- FileHandler --- # Override of global logging level java.util.logging.FileHandler.level=ALL # Naming style for the output file (the output file is placed in the directory # defined by the "user.home" System property): # "/" the local pathname separator # "%t" the system temporary directory # "%h" the value of the "user.home" system property # "%g" the generation number to distinguish rotated logs # "%u" a unique number to resolve conflicts # "%%" translates to a single percent sign "%" java.util.logging.FileHandler.pattern=data/log/neo4j.%u.%g.log # Specifies whether the FileHandler should append onto any existing files # (defaults to false): java.util.logging.FileHandler.append=true # Limiting size of output file in bytes (10M): java.util.logging.FileHandler.limit=10000000 # Number of output files to cycle through, by appending an integer to the base # file name: java.util.logging.FileHandler.count=10 # The name of the character set encoding to use (defaults to the default # platform encoding): #java.util.logging.FileHandler.encoding= # Style of output (Simple or XML): java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter logging.properties

# Properties file which configures the operation of the JDK logging facility. # The system will look for this config file, first using a System property # specified at startup: # # >java -Djava.util.logging.config.file=myLoggingConfigFilePath # # If this property is not specified, then the config file is retrieved from its # default location at: # JDK_HOME/jre/lib/logging.properties # Global logging properties. # ------------------------------------------ # The set of handlers to be loaded upon startup. # Comma-separated list of class names. # (? LogManager docs say no comma here, but JDK example has comma.) #handlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler handlers=java.util.logging.FileHandler # Default global logging level. # Loggers and Handlers may override this level # SERVERE, INFO, FINE, FINEST .level=ALL # Loggers # ------------------------------------------ # Loggers are usually attached to packages. # Here, the level for each package is specified. # The global level is used by default, so levels specified here simply act as # an override. org.neo4j.server.level=ALL # Handlers # ----------------------------------------- # --- ConsoleHandler --- # Override of global logging level java.util.logging.ConsoleHandler.level=ALL java.util.logging.ConsoleHandler.formatter=org.neo4j.server.logging.SimpleConsoleFormatter java.util.logging.ConsoleHandler.filter=org.neo4j.server.logging.NeoLogFilter # --- FileHandler --- # Override of global logging level java.util.logging.FileHandler.level=ALL # Naming style for the output file (the output file is placed in the directory # defined by the "user.home" System property): # "/" the local pathname separator # "%t" the system temporary directory # "%h" the value of the "user.home" system property # "%g" the generation number to distinguish rotated logs # "%u" a unique number to resolve conflicts # "%%" translates to a single percent sign "%" java.util.logging.FileHandler.pattern=data/log/windows-wrapper.%u.%g.log # Specifies whether the FileHandler should append onto any existing files # (defaults to false): java.util.logging.FileHandler.append=true # Limiting size of output file in bytes (10M): java.util.logging.FileHandler.limit=10000000 # Number of output files to cycle through, by appending an integer to the base # file name: java.util.logging.FileHandler.count=10 # The name of the character set encoding to use (defaults to the default # platform encoding): #java.util.logging.FileHandler.encoding= # Style of output (Simple or XML): java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter # Properties file which configures the operation of the JDK # logging facility. # The system will look for this config file, first using # a System property specified at startup: # # >java -Djava.util.logging.config.file=myLoggingConfigFilePath # # If this property is not specified, then the config file is # retrieved from its default location at: # JDK_HOME/jre/lib/logging.properties # Global logging properties. # ------------------------------------------ # The set of handlers to be loaded upon startup. # Comma-separated list of class names. # (? LogManager docs say no comma here, but JDK example has comma.) handlers=java.util.logging.FileHandler, java.util.logging.ConsoleHandler #handlers=java.util.logging.ConsoleHandler # Default global logging level. # Loggers and Handlers may override this level # SEVERE, INFO, FINE, FINEST .level=ALL # Loggers # ------------------------------------------ # Loggers are usually attached to packages. # Here, the level for each package is specified. # The global level is used by default, so levels specified here simply act as # an override. org.neo4j.server.level=ALL # Handlers # ----------------------------------------- # --- ConsoleHandler --- # Override of global logging level java.util.logging.ConsoleHandler.level=ALL java.util.logging.ConsoleHandler.formatter=org.neo4j.server.logging.SimpleConsoleFormatter #java.util.logging.ConsoleHandler.filter=org.neo4j.server.logging.NeoLogFilter # --- FileHandler --- # Override of global logging level java.util.logging.FileHandler.level=ALL # Naming style for the output file (the output file is placed in the directory # defined by the "user.home" System property): # "/" the local pathname separator # "%t" the system temporary directory # "%h" the value of the "user.home" system property # "%g" the generation number to distinguish rotated logs # "%u" a unique number to resolve conflicts # "%%" translates to a single percent sign "%" java.util.logging.FileHandler.pattern=data/log/neo4j.%u.%g.log # Specifies whether the FileHandler should append onto any existing files # (defaults to false): java.util.logging.FileHandler.append=true # Limiting size of output file in bytes (10M): java.util.logging.FileHandler.limit=10000000 # Number of output files to cycle through, by appending an integer to the base # file name: java.util.logging.FileHandler.count=10 # The name of the character set encoding to use (defaults to the default # platform encoding): #java.util.logging.FileHandler.encoding= # Style of output (Simple or XML): java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter
因为我是最后一个对代码库的特定部分进行更改的人,所以我将尝试一个回答:是的,我们做日志记录。例如,在这里:

不过,这似乎只是在你将其作为一个控制台应用程序启动的情况下。我不确定我们使用的库是否有自己的日志记录。我必须承认,我最后一次看到这个,我并没有注意到日志记录是否真的有效

因此,我目前没有得到任何具体的建议。我会确保在待办事项清单中记下这一点。同时,如果你有突破,请告诉我们

少女
谢谢你,小姐。你也做了改变,差不多两年了。我怀疑我可能会在不久的将来向回购协议发送一些PRs:-Lasse,我不认为你使用了IntelliJ,因为你尝试过构建包装。我很难让人工制品正常生成。我可以生成JAR,但是里面没有清单。如果你还有你的项目文件,我能复印一份吗?谢谢Glenn@glennsarti我已经为pom推送了一个更新并运行了它,它至少现在在我的机器上生成了一个清单:-它现在对你有用吗?我得到的清单在这里:谢谢你,小姐。我现在得到了一个Maven包,它为我创建了Jar。不过我还是有点厚脸皮。ClasspathParserTests未能解决看似简单的反斜杠与正斜杠问题。应查找ARSATmultipleLevel:is \-classpath\\..r\663f4d5d-c1c3-4f70-8eed-3768b19b0d04/lib/aneo4jlibrary.jar;。。。但是:was \-classpath\\..r\663f4d5d-c1c3-4f70-8eed-3768b19b0d04\lib\aneo4jlibrary.jar;。。。在完成日志记录后,我将查看这些测试。再次感谢您的帮助刚刚提出了一个关于日志配置的GitHub问题。看起来它使用的是默认工作目录,而不是java命令行上指定的目录。