146 questions
1
vote
0
answers
44
views
I can't get a popup when I click on the custom action button I created with OneDrive & SharPoint FileHandler
I developed a file handler with custom action for my OneDrive and SharePoint environment. I followed the document below :
https://learn.microsoft.com/en-us/onedrive/developer/file-handlers/?view=odsp-...
0
votes
0
answers
48
views
Passing the module name to the FileHandler for inclusion in log file name
I've written a custom logger as part of a Python automation project, but I waty to make the resulting .txt files even easier to identify by adding the name of the script that called the logger to the ...
3
votes
1
answer
917
views
How to handle activation through files in WinUI 3 (Packaged)?
I want to define a filetype to open in my app and have already gotten this far:
I added this to my Package.appxmanifest inside the Application tag:
<Extensions>
<uap:Extension Category=&...
0
votes
0
answers
114
views
Counting position of element in a text file
I have a created name.txt file which contains name of students.
I want to find the position of each name using it in C.
here is my main C code for extracting name.txt .
FILE *fp;
char c;
char name[100]...
0
votes
0
answers
563
views
Is there a way to add a authentication in wildfly file handler
I am using a WildFly(version - 19) to do file directory listing using below configuration.
<subsystem xmlns="urn:jboss:domain:undertow:10.0">
...
<host name="default-...
1
vote
2
answers
547
views
Logging module doesn't replace properly my log file when I set mode = 'w' to FileHandler
I'm trying to overwrite the log file every time that I run my program, but instead, it overwrites the file with the outputs the same number of times as I've run the program. Does anyone know why is ...
-2
votes
1
answer
885
views
C++ reading command from .txt file
I want to create a little "calculator" but I dont know how can I create.
My problem is, I have an input file (.txt) with codes:
acc +40
acc -14
nop +386
jmp +262
acc -4
nop +25
...
the "...
0
votes
1
answer
201
views
org.apache.juli.FileHandler Rotate in GMT
I understand from the official documentation that rotation is done by midnight:
rotatable - If true, the log file will be rotated on the first write past midnight and the filename will be {prefix}{...
1
vote
0
answers
260
views
python add file logging from multiple modules - new file for every request
I have a service running on flask inside docker, that recieves requests.
For every request, i want to export a log file including all logs from all modules in the way.
Right now, it is logging ...
1
vote
1
answer
290
views
how to print folder name in python?
I am trying to read multiple folders for a specific text file using glob.glob to search in all folders. I wanted to print only the folder name instead of folder name/file.txt.
with open ('input.txt', '...
0
votes
1
answer
1k
views
Why always File Handler creating logging files in same path?
I'am trying to learn about logging. When i am created my first file handler, it has worked correctly. I created a file which named "Guesses_of_PC.log" and the handler has put it to the same ...
3
votes
0
answers
537
views
FileHandle causing memory leak in iOS
The background
I am working on a project which uses a third party SDK to process files in a particular format. The SDK takes Data as parameter to process. In case of large files, since iOS Data object ...
-1
votes
2
answers
415
views
how to open the file with path name?
I am trying to open the file using a path instead of file name I used glob.glob option to go and search in the path for an input file. Now I got struck with opening that. Any help would be appreciated....
0
votes
2
answers
1k
views
Logging different logs in different files. But all logs go in same file
I am using java.util.logging library for logging.
My code is as follows :
package com.test.vesrionControlSystem.services;
import java.io.IOException;
import java.util.Date;
import java.util....
-1
votes
1
answer
834
views
How to create or configure Filehandler in java to logic my logs in different executions?
You may think it a stupid question, but surely I found no specification for it.
I have a mini-program that needs to log success and failures upon execution and I need the log to be kept apart from ...
1
vote
1
answer
2k
views
Spring rest controller not working for file upload
I have tried a rest api without any View with mongodb. My application is working fine with Spring boot embedded server with no error. With standalone tomcat application is running without error but ...
0
votes
1
answer
961
views
Bug with with logging.handlers.TimedRotatingFileHandler?
The following code produces some unexpected behaviour with logging.handlers.TimedRotatingFileHandler:
logger1 = logging.getLogger("One")
logger2 = logging.getLogger("Two")
handler1 = ...
1
vote
1
answer
1k
views
Custom rotator and namer functions not working with RotatingFileHandler logger handler in python?
I have referred below link for using rotator and namer functions, but they are not working(not making any difference)
Link: https://docs.python.org/3/howto/logging-cookbook.html#using-a-rotator-and-...
3
votes
2
answers
404
views
How to determine if two handles refer to the same file
I would like to check if two file handles refer to the same file. In order to do this, can I use the stat function applied to each file handle?
Thanks in advance
my $file = 'C:\temp\file.txt');
open( ...
0
votes
1
answer
443
views
Merge/Append two files
I have two files, File1 & File2. I want to append File2 at the end of File1.
func writeToFile(content: String, fileName: String) {
let contentToAppend = content+"\n"
let filePath = ...
0
votes
1
answer
410
views
Accessing file using fileget url
I am trying to create file handler add in that uses provider hosted application to open custom file.
I have hosted app in heroku and until now i get request body in my application as follows when i ...
-3
votes
1
answer
270
views
When I am appending every string to .txt file by using try String(contentsOf: shareLog) in swift failing Some times
I am calling bellow function to get contentsof the .txt file and I am getting successfully some times but some times when I am trying to get It Is going to catch block and giving the bellow error .....
1
vote
3
answers
2k
views
java logger single file multiple classes
I have three classes and I want to add the logs to a shared single file.
So the constructor of each class has a
fh = new FileHandler("log.txt", true);
LOGGER_A.addHandler(fh);
...
3
votes
2
answers
13k
views
Python 3 logger with RotatingFileHandler excedes maxBytes limit
I am using the following code to limit the size of a logfile (minimal example):
import logging
from logging.handlers import RotatingFileHandler
# Set up logfile and message logging.
logger = logging....
0
votes
2
answers
171
views
How to avoid and controll the increment of files app.log.X in JAVA LOGGIN
I am fighting with some thing from yesterday.
I want to log a webapp (WAR) in java.
I create a log, append a FileHandler, and i send log messages. But, like all of us know, the file handler keep ...