Skip to main content

New answers tagged

0 votes

Where to find AWS Amplify Logger logs

After a lot of digging I found that the AWS AppSync console has a Settings page for each AppSync API. This has an option to enable logging which was set True in my case, and under this is a a field ...
QuantumTiger's user avatar
  • 1,008
Tooling
1 vote
0 replies
0 views

Spring boot structured logging issue

Extend EcsStructuredLogFormatter directly This is the correct fix. Override the service-writing logic to include service.id: public class CustomEcsFormatter extends EcsStructuredLogFormatter { ...
Jayanta Karmakar's user avatar
1 vote
Accepted

Handling "level" keyword with structlog wide logging

You returned a dict inside the mock function of the JSONRenderer.__call__, which will result in an undefined behavior. You can fix it like the following example. @pytest.fixture def capture_logs(): ...
relent95's user avatar
  • 5,243
0 votes

What is the difference between Tracing and Logging?

In my opinion, the difference is more subtle. Logging is an abstraction over global IO. Tracing is an abstraction over information accumulation. void foo() { log('x = 1'); } void bar(t: TraceObj) ...
adic threex's user avatar
Tooling
1 vote
0 replies
0 views

KQL Script to check existence of a file on Azure VM file system

Thank you. Will give it a go and provide some feedback asap.
hitman126's user avatar
  • 969
0 votes

How to log to a file in Java?

Here's a complete example of how to set up Java Logger to write different log levels to a file with each entry on one line: private static final Logger logger = Logger.getLogger(AdvancedFileLogger....
boom7eveN's user avatar
0 votes

What exactly is a log drain

A log drain is basically a solution that creates a central data sink for event logs from multiple sources. It puts all the event logs from often disconnected systems in one place for analysis. Usually ...
siliconrockstar's user avatar
Tooling
0 votes
0 replies
0 views

KQL Script to check existence of a file on Azure VM file system

You can use Azure Change Tracking and Inventory. It has option to add paths to files. It will monitor for changes to these files. In case you do not have changes there is inventory which runs once 24 ...
Stanislav Zhelyazkov's user avatar
Tooling
0 votes
0 replies
0 views

KQL Script to check existence of a file on Azure VM file system

thanks for your input. Yes, by KQL I'm indeed referring to Kusto Query Language. The KQL acronym is very commonly used, and the reference to it as either a script or query is all rather trivial, as I'...
hitman126's user avatar
  • 969
Tooling
0 votes
0 replies
0 views

KQL Script to check existence of a file on Azure VM file system

Can you elaborate more? I would guess by KQL you mean Kusto Query Language which is not script language but query language. KQL is used in Azure Resource Graph but Azure resource graph provides ...
Stanislav Zhelyazkov's user avatar
0 votes

Caught Exceptions don't get logged in Laravel

Since you catch the exception yourself, it never gets passed to Laravel, so it can never be reported. The simplest solution would be to report the exception yourself before aborting: try { $...
fejx's user avatar
  • 1
0 votes

Updated Logging to application insights to use the OpenTelemetry SDK, this broke HTTP status code filtration

So I think I've found a solution... I don't know if its best practice or not but here is what worked for me. LoggingWebAppBuilderExtension: .WithTracing(tracing => { tracing....
H4p7ic's user avatar
  • 1,943
0 votes

golang gorm Access the underlying mysql query

If you're using the generics API, it's a little more complicated, most of the documented methods seem not to work. What I did get to work was using ToSQL function, but in a somewhat unintuitive way: ...
Greg Rozmarynowycz's user avatar
0 votes

Flush a file write so that *another program* can read it

For changes to be visible to other programs, File.flush() and os.fsync() must be run: log.write('Something happened! D:\n') log.flush() os.fsync(log)
enigmaticPhysicist's user avatar

Top 50 recent answers are included